зеркало из https://github.com/github/ruby.git
* 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:
Родитель
13edb951b7
Коммит
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>
|
||||
|
||||
* 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
|
||||
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче