summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 06:14:55 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 06:14:55 +0000
commit930b31f80390886f6039abf19cbfa06cc7a842ae (patch)
tree2ac637428d38eca9402e041e84ec07efe878084c /process.c
parent8405e8c2cc4dd260c9b986ecc0f17ac3b5779e67 (diff)
merges r21248 from trunk into ruby_1_9_1.
* process.c (before_exec): it makes no sense for a conditional expression to return a void value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 11c7c2314..fa593bc01 100644
--- a/process.c
+++ b/process.c
@@ -973,7 +973,7 @@ void rb_thread_reset_timer_thread(void);
static int forked_child = 0;
#define before_exec() \
- (rb_enable_interrupt(), forked_child ? 0 : rb_thread_stop_timer_thread())
+ (rb_enable_interrupt(), (forked_child ? 0 : (rb_thread_stop_timer_thread(), 1)))
#define after_exec() \
(rb_thread_reset_timer_thread(), rb_thread_start_timer_thread(), forked_child = 0, rb_disable_interrupt())
#define before_fork() before_exec()