summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-04 06:26:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-04 06:26:10 +0000
commit142592a2eddbe959a3ff89bae5856ff416f2d821 (patch)
tree8a12c2fd09f99bd0e889d3fabc4b1fd75527bab9 /process.c
parent2dad828a89001002da36d492d1631b2476af6756 (diff)
downloadruby-142592a2eddbe959a3ff89bae5856ff416f2d821.tar.gz
ruby-142592a2eddbe959a3ff89bae5856ff416f2d821.tar.xz
ruby-142592a2eddbe959a3ff89bae5856ff416f2d821.zip
* process.c (rb_proc_exec): use same logic as DJGPP on win32 ports.
* process.c (rb_f_system): ditto. * win32/win32.c, win32/win32.h (do_aspawn): [new]. for arrayed arguments. * win32/win32.c (CreateChild): add new argument for real filename of executing process. * win32/win32.c (NtHasRedirection, pipe_exec): follow above change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.c b/process.c
index 4b855ac3b..bdf430129 100644
--- a/process.c
+++ b/process.c
@@ -577,7 +577,7 @@ rb_proc_exec(str)
return -1;
}
-#if defined(__human68k__) || defined(__DJGPP__)
+#if defined(__human68k__) || defined(__DJGPP__) || defined(_WIN32)
static int
proc_spawn_v(argv, prog)
char **argv;
@@ -814,7 +814,7 @@ rb_f_system(argc, argv)
int argc;
VALUE *argv;
{
-#if defined(_WIN32) || defined(__EMX__)
+#if defined(__EMX__)
VALUE cmd;
int status;
@@ -839,7 +839,7 @@ rb_f_system(argc, argv)
if (status == 0) return Qtrue;
return Qfalse;
-#elif defined(__human68k__) || defined(__DJGPP__)
+#elif defined(__human68k__) || defined(__DJGPP__) || defined(_WIN32)
volatile VALUE prog = 0;
int status;