* 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:
parent
0b89081bbb
commit
825430438d
@ -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>
|
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
|
* internal.h (rb_file_const, rb_file_load_ok): moved functions for
|
||||||
|
4
io.c
4
io.c
@ -5430,14 +5430,14 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
|
|||||||
FILE *fp = 0;
|
FILE *fp = 0;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
int write_fd = -1;
|
int write_fd = -1;
|
||||||
const char *cmd = 0;
|
|
||||||
#if !defined(HAVE_FORK)
|
#if !defined(HAVE_FORK)
|
||||||
|
const char *cmd = 0;
|
||||||
int argc;
|
int argc;
|
||||||
VALUE *argv;
|
VALUE *argv;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (prog)
|
if (prog)
|
||||||
cmd = StringValueCStr(prog);
|
cmd = StringValueCStr(prog);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_FORK)
|
#if !defined(HAVE_FORK)
|
||||||
if (!eargp) {
|
if (!eargp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user