mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (rb_fork): initialization with dynamic values is not
allowed in C89. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a61786398a
commit
3abae536a6
1 changed files with 3 additions and 1 deletions
|
@ -2546,7 +2546,9 @@ rb_pid_t
|
|||
rb_fork(int *status, int (*chfunc)(void*), void *charg, VALUE fds)
|
||||
{
|
||||
if (chfunc) {
|
||||
struct chfunc_wrapper_t warg = { chfunc, charg };
|
||||
struct chfunc_wrapper_t warg;
|
||||
warg.chfunc = chfunc;
|
||||
warg.arg = charg;
|
||||
return rb_fork_err(status, chfunc_wrapper, &warg, fds, NULL, 0);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue