[前][次][番号順一覧][スレッド一覧]

ruby-changes:11401

From: nobu <ko1@a...>
Date: Sat, 21 Mar 2009 07:27:44 +0900 (JST)
Subject: [ruby-changes:11401] Ruby:r23022 (trunk): * io.c (pipe_open): should pass program name even if multiple

nobu	2009-03-21 07:25:57 +0900 (Sat, 21 Mar 2009)

  New Revision: 23022

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23022

  Log:
    * io.c (pipe_open): should pass program name even if multiple
      arguments are given.  fix for TestProcess::test_argv0.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23021)
+++ ChangeLog	(revision 23022)
@@ -1,3 +1,8 @@
+Sat Mar 21 07:25:56 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* io.c (pipe_open): should pass program name even if multiple
+	  arguments are given.  fix for TestProcess::test_argv0.
+
 Sat Mar 21 02:37:07 2009  Tanaka Akira  <akr@f...>
 
 	* ext/openssl/lib/openssl/buffering.rb
Index: io.c
===================================================================
--- io.c	(revision 23021)
+++ io.c	(revision 23022)
@@ -4755,7 +4755,7 @@
 	rb_run_exec_options(eargp, &sarg);
     }
     while ((pid = (args ?
-		   rb_w32_aspawn(P_NOWAIT, 0, args) :
+		   rb_w32_aspawn(P_NOWAIT, cmd, args) :
 		   rb_w32_spawn(P_NOWAIT, cmd, 0))) == -1) {
 	/* exec failed */
 	switch (errno) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]