From 27172b8e6fcd14f07fa5ea5be803cb04bde04559 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 5 Feb 2007 16:22:38 +0000 Subject: * intern.h: prepare rb_last_status_get() and rb_last_status_set(). Use these functions instead of rb_last_status ([ruby-dev:30264]). * process.c: define above functions. * ext/pty/pty.c: use above functins. * io.c (pipe_finalize): ditto. * process.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/pty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 215f2cfd6d..5d86525daa 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -135,13 +135,12 @@ struct pty_info { static void raise_from_wait(char *state, struct pty_info *info) { - extern VALUE rb_last_status; char buf[1024]; VALUE exc; snprintf(buf, sizeof(buf), "pty - %s: %ld", state, (long)info->child_pid); exc = rb_exc_new2(eChildExited, buf); - rb_iv_set(exc, "status", rb_last_status); + rb_iv_set(exc, "status", rb_last_status_get()); rb_funcall(info->thread, rb_intern("raise"), 1, exc); } -- cgit v1.2.3