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

ruby-changes:23860

From: akr <ko1@a...>
Date: Mon, 4 Jun 2012 20:13:58 +0900 (JST)
Subject: [ruby-changes:23860] akr:r35911 (trunk): add comment.

akr	2012-06-04 20:13:47 +0900 (Mon, 04 Jun 2012)

  New Revision: 35911

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

  Log:
    add comment.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 35910)
+++ process.c	(revision 35911)
@@ -3140,11 +3140,11 @@
     }
 # if defined HAVE_SPAWNV
     if (earg->use_shell) {
-	pid = proc_spawn(RSTRING_PTR(prog));
+	pid = proc_spawn(RSTRING_PTR(prog)); /* xxx: earg is ignored. */
     }
     else {
         char **argv = ARGVSTR2ARGV(earg->argv_str);
-	pid = proc_spawn_n(argv, prog, earg->options);
+	pid = proc_spawn_n(argv, prog, earg->options); /* xxx: earg (except options) is ignored. */
     }
 #  if defined(_WIN32)
     if (pid == -1)
@@ -3156,7 +3156,7 @@
         int argc = ARGVSTR2ARGC(earg->argv_str);
         prog = rb_ary_join(rb_ary_new4(argc, argv), rb_str_new2(" "));
     }
-    status = system(StringValuePtr(prog));
+    status = system(StringValuePtr(prog)); /* xxx: earg is ignored. */
     rb_last_status_set((status & 0xff) << 8, 0);
 # endif
 

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

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