summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-18 05:53:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-18 05:53:33 +0000
commit226bf50f8e8e806fd74f775f7d555a61ce153881 (patch)
tree8b0b80e854d35a074a6d12ccb984cca912db78a6 /process.c
parent564d84aaaeeff6ac5f6ae4fca9eb720c53561e01 (diff)
* process.c (rb_f_system): call rb_sys_fail(0) if rb_last_status
is nil. [ruby-talk:202361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 72e5c54..1b6f133 100644
--- a/process.c
+++ b/process.c
@@ -1537,7 +1537,7 @@ rb_f_system(argc, argv)
default:
rb_syswait(pid);
}
-
+ if (NIL_P(rb_last_status)) rb_sys_fail(0);
status = NUM2INT(rb_last_status);
#endif