зеркало из https://github.com/github/ruby.git
* 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/trunk@10555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e7d8263f77
Коммит
ddbebabd25
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 18 14:38:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* process.c (rb_f_system): call rb_sys_fail(0) if rb_last_status
|
||||
is nil. [ruby-talk:202361]
|
||||
|
||||
Tue Jul 18 14:03:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove
|
||||
|
|
|
@ -1592,6 +1592,7 @@ rb_f_system(int argc, VALUE *argv)
|
|||
if (status == -1) rb_sys_fail(RSTRING(argv[0])->ptr);
|
||||
#if defined(HAVE_FORK) || defined(HAVE_SPAWNV)
|
||||
rb_syswait(status);
|
||||
if (NIL_P(rb_last_status)) rb_sys_fail(0);
|
||||
status = NUM2INT(rb_last_status);
|
||||
#endif
|
||||
if (status == EXIT_SUCCESS) return Qtrue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче