summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 11:53:21 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 11:53:21 +0000
commitb8a34654056a27ebe3dff8319c367c15e6832f41 (patch)
treeb9d439db449a2e86d38533c98eebf6d58210f021 /process.c
parent77962159204b1c0755cb877bd3177c0a45293ac2 (diff)
downloadruby-b8a34654056a27ebe3dff8319c367c15e6832f41.tar.gz
ruby-b8a34654056a27ebe3dff8319c367c15e6832f41.tar.xz
ruby-b8a34654056a27ebe3dff8319c367c15e6832f41.zip
* 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/trunk@21248 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 ac0ec0605..ed84d516a 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()