diff options
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/pty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index be87c3701b..ee56d5862f 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -196,6 +196,7 @@ establishShell(int argc, VALUE *argv, struct pty_info *info, close(master); close(slave); errno = e; + if (status) rb_jump_tag(status); rb_sys_fail(errbuf[0] ? errbuf : "fork failed"); } |