* process.c (rb_fork_err): Fix the conditoin to use rb_protect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13edb951b7
commit
0d92aac602
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jun 7 22:13:05 2012 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* process.c (rb_fork_err): Fix the conditoin to use rb_protect.
|
||||||
|
|
||||||
Thu Jun 7 20:29:12 2012 Tanaka Akira <akr@fsij.org>
|
Thu Jun 7 20:29:12 2012 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* include/ruby/intern.h: rb_exec_arg and related stuff moved back from
|
* include/ruby/intern.h: rb_exec_arg and related stuff moved back from
|
||||||
|
@ -2787,13 +2787,13 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
|
|||||||
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
|
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
|
||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
#endif
|
#endif
|
||||||
if (!status && !chfunc) {
|
if (!status) {
|
||||||
rb_thread_sleep(1);
|
rb_thread_sleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rb_protect((VALUE (*)())rb_thread_sleep, 1, &state);
|
rb_protect((VALUE (*)())rb_thread_sleep, 1, &state);
|
||||||
if (status) *status = state;
|
*status = state;
|
||||||
if (!state) continue;
|
if (!state) continue;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user