зеркало из https://github.com/github/ruby.git
* process.c (rb_fork_internal): move a variable declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2c1322ec88
Коммит
e9a1ba232a
|
@ -1,3 +1,7 @@
|
|||
Wed Jun 13 20:19:59 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (rb_fork_internal): move a variable declaration.
|
||||
|
||||
Wed Jun 13 17:54:38 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* regparse.c (PFETCH_READY): this line was to suppress warning,
|
||||
|
|
|
@ -3102,13 +3102,13 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
|
|||
if (pid < 0)
|
||||
return pid;
|
||||
if (!pid) {
|
||||
struct chfunc_protect_t arg;
|
||||
int ret;
|
||||
forked_child = 1;
|
||||
close(ep[0]);
|
||||
if (chfunc_is_async_signal_safe)
|
||||
ret = chfunc(charg, errmsg, errmsg_buflen);
|
||||
else {
|
||||
struct chfunc_protect_t arg;
|
||||
arg.chfunc = chfunc;
|
||||
arg.arg = charg;
|
||||
arg.errmsg = errmsg;
|
||||
|
|
Загрузка…
Ссылка в новой задаче