diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-05 16:22:38 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-05 16:22:38 +0000 |
commit | 27172b8e6fcd14f07fa5ea5be803cb04bde04559 (patch) | |
tree | 38c4e091c97426157118d2eaf8d5d6c0edbabf17 /win32 | |
parent | 48002b881e49ff76f869e0f383fd5419cbca9af3 (diff) | |
download | ruby-27172b8e6fcd14f07fa5ea5be803cb04bde04559.tar.gz |
* 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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c index c3702c10b7..c4aabf62b7 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -837,8 +837,6 @@ rb_w32_pipe_exec(const char *cmd, const char *prog, int mode, int *pipe) return ret; } -extern VALUE rb_last_status; - int rb_w32_spawn(int mode, const char *cmd, const char *prog) { @@ -863,7 +861,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog) switch (mode) { case P_WAIT: rb_syswait(child->pid); - return NUM2INT(rb_last_status); + return NUM2INT(rb_last_status_get()); case P_NOWAIT: return child->pid; case P_OVERLAY: |