ruby-changes:4977
From: ko1@a...
Date: Mon, 19 May 2008 13:26:57 +0900 (JST)
Subject: [ruby-changes:4977] usa - Ruby:r16470 (trunk): * process.c (rb_spawn_internal): set last_status when status == -1
usa 2008-05-19 13:26:43 +0900 (Mon, 19 May 2008)
New Revision: 16470
Modified files:
trunk/ChangeLog
trunk/process.c
Log:
* process.c (rb_spawn_internal): 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 <luislavena at
gmail.com>
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16470&r2=16469&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=16470&r2=16469&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16469)
+++ ChangeLog (revision 16470)
@@ -1,3 +1,10 @@
+Mon May 19 13:23:03 2008 NAKAMURA Usaku <usa@r...>
+
+ * process.c (rb_spawn_internal): 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 <luislavena at
+ gmail.com>
+
Mon May 19 11:32:47 2008 Koichi Sasada <ko1@a...>
* vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
Index: process.c
===================================================================
--- process.c (revision 16469)
+++ process.c (revision 16470)
@@ -2674,6 +2674,10 @@
else {
status = proc_spawn_n(argc, argv, prog);
}
+# if defined(_WIN32)
+ if (status == -1)
+ rb_last_status_set(0x7f << 8, 0);
+# endif
# else
if (argc) prog = rb_ary_join(rb_ary_new4(argc, argv), rb_str_new2(" "));
status = system(StringValuePtr(prog));
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/