diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-21 15:04:51 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-21 15:04:51 +0000 |
| commit | c5469a56c88f5b74d760b19402468df173a6b628 (patch) | |
| tree | bbd5ca970e926757e6501c7d09f189bcdba2413e | |
| parent | 04a4fcc9264b044bbfd72598df07992e4af63deb (diff) | |
| download | ruby-c5469a56c88f5b74d760b19402468df173a6b628.tar.gz ruby-c5469a56c88f5b74d760b19402468df173a6b628.tar.xz ruby-c5469a56c88f5b74d760b19402468df173a6b628.zip | |
* process.c (rb_f_system): not need to call last_status_set() any
longer on _WIN32.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | process.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Jul 22 00:02:21 2004 Masahiro Kitajima <katonbo@katontech.com> + + * process.c (rb_f_system): not need to call last_status_set() any + longer on _WIN32. + Tue Jul 20 09:15:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * test/fileutils/test_fileutils.rb: File.link raises EINVAL on BeOS. @@ -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) |
