diff options
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r-- | ext/pty/pty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index c44953ca1..02bf97566 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -155,7 +155,7 @@ struct child_info { }; static int -chfunc(void *data) +chfunc(void *data, char *errmsg, size_t errmsg_len) { struct child_info *carg = data; int master = carg->master; @@ -258,7 +258,7 @@ establishShell(int argc, VALUE *argv, struct pty_info *info, carg.slavename = SlaveName; carg.argc = argc; carg.argv = argv; - pid = rb_fork(0, chfunc, &carg, Qnil); + pid = rb_fork(0, chfunc, &carg, Qnil, NULL, 0); if (pid < 0) { close(master); |