ruby-changes:18364
From: kosaki <ko1@a...>
Date: Sun, 26 Dec 2010 21:59:25 +0900 (JST)
Subject: [ruby-changes:18364] Ruby:r30387 (trunk): * process.c (before_exec): add small comment.
kosaki 2010-12-26 21:59:19 +0900 (Sun, 26 Dec 2010) New Revision: 30387 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30387 Log: * process.c (before_exec): add small comment. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30386) +++ ChangeLog (revision 30387) @@ -1,3 +1,7 @@ +Sun Dec 26 20:28:34 2010 KOSAKI Motohiro <kosaki.motohiro@g...> + + * process.c (before_exec): add small comment. + Sun Dec 26 20:52:21 2010 Tanaka Akira <akr@f...> * ext/socket/mkconstants.rb: define INET_ADDRSTRLEN as 16 if not Index: process.c =================================================================== --- process.c (revision 30386) +++ process.c (revision 30387) @@ -995,6 +995,10 @@ static int forked_child = 0; +/* + * On old MacOS X, exec() may return ENOTSUPP if the process have multiple threads. + * Therefore we have to kill internal threads at once. [ruby-core: 10583] + */ #define before_exec() \ (rb_enable_interrupt(), (void)(forked_child ? 0 : (rb_thread_stop_timer_thread(), 1))) #define after_exec() \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/