summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 02:26:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 02:26:39 +0000
commit182dc9d40d7e32ef3782ad333613933afdc308f9 (patch)
treed6c69383f66abcdcea89ae01f3338e2c714e5ccc /ext/pty/pty.c
parentbc81a19e99ab99d4a1d8e4cedce3fbf87c52bda4 (diff)
process.c, ext/pty/pty.c: status on errors
* process.c (rb_fork_err): determine status on errors. * ext/pty/pty.c (establishShell): reraise exception if something raised during sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index be87c37..ee56d58 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");
}