diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pty/pty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 108a16e8e3..16aaf9d149 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -196,12 +196,14 @@ establishShell(int argc, VALUE *argv, struct pty_info *info, int e = errno; close(master); close(slave); + rb_execarg_parent_end(carg.execarg_obj); errno = e; if (status) rb_jump_tag(status); rb_sys_fail(errbuf[0] ? errbuf : "fork failed"); } close(slave); + rb_execarg_parent_end(carg.execarg_obj); info->child_pid = pid; info->fd = master; |