diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-07 13:13:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-07 13:13:52 +0000 |
commit | 0d92aac60205ef80daae9b7b32e822c9f243549e (patch) | |
tree | 6d7ea56d2eebfaeeea766548ca40787457365972 /process.c | |
parent | 13edb951b71881b6ef89d1ab10e2e50eadd5d8da (diff) |
* 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
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |