1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-03-02 07:36:00 +00:00
parent 0b89081bbb
commit 825430438d
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Fri Mar 2 16:35:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (pipe_open): cmd is no longer used if fork is available.
Thu Mar 1 16:13:18 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* internal.h (rb_file_const, rb_file_load_ok): moved functions for

4
io.c
View file

@ -5430,14 +5430,14 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
FILE *fp = 0;
int fd = -1;
int write_fd = -1;
const char *cmd = 0;
#if !defined(HAVE_FORK)
const char *cmd = 0;
int argc;
VALUE *argv;
#endif
if (prog)
cmd = StringValueCStr(prog);
#endif
#if !defined(HAVE_FORK)
if (!eargp) {