зеркало из https://github.com/github/ruby.git
* 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:
Родитель
0b89081bbb
Коммит
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>
|
||||
|
||||
* 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;
|
||||
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче