summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-21 15:04:51 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-21 15:04:51 +0000
commitdcd31c368c6f997ace8c86cd8833a0d89fe0da75 (patch)
treebbd5ca970e926757e6501c7d09f189bcdba2413e /process.c
parent33f142abca65a6a37b729564816090c1da42574d (diff)
* process.c (rb_f_system): not need to call last_status_set() any
longer on _WIN32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/process.c b/process.c
index 8575b51..ecf660d 100644
--- a/process.c
+++ b/process.c
@@ -1427,9 +1427,7 @@ rb_f_system(argc, argv)
else {
status = proc_spawn_n(argc, argv, prog);
}
-#if defined(_WIN32)
- last_status_set(status, 0);
-#else
+#if !defined(_WIN32)
last_status_set(status == -1 ? 127 : status, 0);
#endif
#elif defined(__VMS)