ruby-changes:23904
From: akr <ko1@a...>
Date: Thu, 7 Jun 2012 22:14:04 +0900 (JST)
Subject: [ruby-changes:23904] akr:r35955 (trunk): * process.c (rb_fork_err): Fix the conditoin to use rb_protect.
akr 2012-06-07 22:13:52 +0900 (Thu, 07 Jun 2012) New Revision: 35955 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35955 Log: * process.c (rb_fork_err): Fix the conditoin to use rb_protect. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35954) +++ ChangeLog (revision 35955) @@ -1,3 +1,7 @@ +Thu Jun 7 22:13:05 2012 Tanaka Akira <akr@f...> + + * process.c (rb_fork_err): Fix the conditoin to use rb_protect. + Thu Jun 7 20:29:12 2012 Tanaka Akira <akr@f...> * include/ruby/intern.h: rb_exec_arg and related stuff moved back from Index: process.c =================================================================== --- process.c (revision 35954) +++ process.c (revision 35955) @@ -2787,13 +2787,13 @@ #if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN case EWOULDBLOCK: #endif - if (!status && !chfunc) { + if (!status) { rb_thread_sleep(1); continue; } else { rb_protect((VALUE (*)())rb_thread_sleep, 1, &state); - if (status) *status = state; + *status = state; if (!state) continue; } default: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/