diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-26 12:59:19 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-26 12:59:19 +0000 |
commit | 5d276ea14a84de7fd204dfd635ac7b6d17ea9039 (patch) | |
tree | 26af0d14df78740b4f6492db6e88c3f68a398cef | |
parent | 2316cd4d0c903d6ee54fff09ffe6c4feef6582ce (diff) |
* process.c (before_exec): add small comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | process.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Sun Dec 26 20:28:34 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * process.c (before_exec): add small comment. + Sun Dec 26 20:52:21 2010 Tanaka Akira <akr@fsij.org> * ext/socket/mkconstants.rb: define INET_ADDRSTRLEN as 16 if not @@ -995,6 +995,10 @@ void rb_thread_reset_timer_thread(void); 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() \ |