mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
373a7d1a95
commit
ba1c1786d6
1 changed files with 6 additions and 0 deletions
|
@ -2788,10 +2788,16 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
|
|||
continue;
|
||||
}
|
||||
else {
|
||||
/* rb_protect() is required not only for non-NULL status
|
||||
* but also for non-NULL chfunc because
|
||||
* ep[0] and ep[1] should be closed on exceptions.
|
||||
* If status is NULL, the catched exception is re-raised
|
||||
* by rb_jump_tag() below, after closing them. */
|
||||
rb_protect((VALUE (*)())rb_thread_sleep, 1, &state);
|
||||
if (status) *status = state;
|
||||
if (!state) continue;
|
||||
}
|
||||
/* fall through */
|
||||
default:
|
||||
#ifdef FD_CLOEXEC
|
||||
if (chfunc) {
|
||||
|
|
Loading…
Add table
Reference in a new issue