summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-20 22:25:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-20 22:25:57 +0000
commit48c72cacc3990e36f5bce2f1c578604414650e57 (patch)
treed192e6da4f75d464d81f80fd9e05e35e57a406e5 /io.c
parentc7af2704cb0168122eae81743c33cc4636e8b13c (diff)
downloadruby-48c72cacc3990e36f5bce2f1c578604414650e57.tar.gz
ruby-48c72cacc3990e36f5bce2f1c578604414650e57.tar.xz
ruby-48c72cacc3990e36f5bce2f1c578604414650e57.zip
* io.c (pipe_open): should pass program name even if multiple
arguments are given. fix for TestProcess::test_argv0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 47f036741..0a984a18d 100644
--- a/io.c
+++ b/io.c
@@ -4755,7 +4755,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
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) {