1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (before_exec): add small comment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2010-12-26 12:59:19 +00:00
parent 2316cd4d0c
commit 5d276ea14a
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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() \