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 | 3b8aeff63ea9855f64c7f6c9771c58c68d9fb55f (patch) | |
| tree | 38c4e091c97426157118d2eaf8d5d6c0edbabf17 /win32 | |
| parent | bad40cf1ee1edcf05753e3b41f90f8b8a88cfca6 (diff) | |
| download | ruby-3b8aeff63ea9855f64c7f6c9771c58c68d9fb55f.tar.gz ruby-3b8aeff63ea9855f64c7f6c9771c58c68d9fb55f.tar.xz ruby-3b8aeff63ea9855f64c7f6c9771c58c68d9fb55f.zip | |
* 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: http://svn.ruby-lang.org/repos/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 c3702c10b..c4aabf62b 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: |
