[前][次][番号順一覧][スレッド一覧]

ruby-changes:9707

From: shyouhei <ko1@a...>
Date: Thu, 1 Jan 2009 20:53:39 +0900 (JST)
Subject: [ruby-changes:9707] Ruby:r21248 (trunk): * process.c (before_exec): it makes no sense for a conditional

shyouhei	2009-01-01 20:53:21 +0900 (Thu, 01 Jan 2009)

  New Revision: 21248

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21248

  Log:
    * process.c (before_exec): it makes no sense for a conditional
      expression to return a void value.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21247)
+++ ChangeLog	(revision 21248)
@@ -1,3 +1,8 @@
+Thu Jan  1 20:50:09 2009  URABE Shyouhei  <shyouhei@r...>
+
+	* process.c (before_exec): it makes no sense for a conditional
+	  expression to return a void value.
+
 Thu Jan  1 20:47:09 2009  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c (sock_s_getaddrinfo): use family_to_int.
Index: process.c
===================================================================
--- process.c	(revision 21247)
+++ process.c	(revision 21248)
@@ -973,7 +973,7 @@
 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()

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]