[前][次][番号順一覧][スレッド一覧]

ruby-changes:8678

From: usa <ko1@a...>
Date: Tue, 11 Nov 2008 23:37:31 +0900 (JST)
Subject: [ruby-changes:8678] Ruby:r20213 (ruby_1_9_1): * win32/win32.c (rb_w32_accept): commit miss.

usa	2008-11-11 23:37:18 +0900 (Tue, 11 Nov 2008)

  New Revision: 20213

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20213

  Log:
    * win32/win32.c (rb_w32_accept): commit miss.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/win32/win32.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20212)
+++ ruby_1_9_1/ChangeLog	(revision 20213)
@@ -1,3 +1,7 @@
+Tue Nov 11 23:36:45 2008  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_accept): commit miss.
+
 Tue Nov 11 23:02:27 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* man/ruby.1 (RUBYOPT): wrote which option can appear.
Index: ruby_1_9_1/win32/win32.c
===================================================================
--- ruby_1_9_1/win32/win32.c	(revision 20212)
+++ ruby_1_9_1/win32/win32.c	(revision 20213)
@@ -2310,6 +2310,7 @@
 		MTHREAD_ONLY(EnterCriticalSection(&(_pioinfo(fd)->lock)));
 		_set_osfhnd(fd, r);
 		MTHREAD_ONLY(LeaveCriticalSection(&_pioinfo(fd)->lock));
+		CloseHandle(h);
 		st_insert(socklist, (st_data_t)r, (st_data_t)0);
 	    }
 	    else {
@@ -2318,6 +2319,8 @@
 		fd = -1;
 	    }
 	}
+	else
+	    CloseHandle(h);
     });
     return fd;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]