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

ruby-changes:22819

From: nobu <ko1@a...>
Date: Fri, 2 Mar 2012 16:36:15 +0900 (JST)
Subject: [ruby-changes:22819] nobu:r34868 (trunk): * io.c (pipe_open): cmd is no longer used if fork is available.

nobu	2012-03-02 16:36:00 +0900 (Fri, 02 Mar 2012)

  New Revision: 34868

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

  Log:
    * io.c (pipe_open): cmd is no longer used if fork is available.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34867)
+++ ChangeLog	(revision 34868)
@@ -1,3 +1,7 @@
+Fri Mar  2 16:35:56 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* io.c (pipe_open): cmd is no longer used if fork is available.
+
 Thu Mar  1 16:13:18 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* internal.h (rb_file_const, rb_file_load_ok): moved functions for
Index: io.c
===================================================================
--- io.c	(revision 34867)
+++ io.c	(revision 34868)
@@ -5430,14 +5430,14 @@
     FILE *fp = 0;
     int fd = -1;
     int write_fd = -1;
+#if !defined(HAVE_FORK)
     const char *cmd = 0;
-#if !defined(HAVE_FORK)
     int argc;
     VALUE *argv;
-#endif
 
     if (prog)
         cmd = StringValueCStr(prog);
+#endif
 
 #if !defined(HAVE_FORK)
     if (!eargp) {

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

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