From 89602ad3f05667aa44a5385644e1b6ad63276e7c Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sun, 15 Jun 2008 14:07:58 +0000 Subject: merge revision(s) 16471: * process.c (rb_f_system): set last_status when status == -1 because there is no path to set it on win32. this patch is derived from [ruby-core:16787], submitted by Luis Lavena git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'process.c') diff --git a/process.c b/process.c index ced3f53f6f..377fa5f3f2 100644 --- a/process.c +++ b/process.c @@ -1525,6 +1525,9 @@ rb_f_system(argc, argv) } #if !defined(_WIN32) last_status_set(status == -1 ? 127 : status, 0); +#else + if (status == -1) + last_status_set(0x7f << 8, 0); #endif #elif defined(__VMS) VALUE cmd; -- cgit v1.2.3