diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-16 13:42:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-16 13:42:59 +0000 |
commit | a1ce08c5b39b848ed5f87f3cd3f75259bcb6b347 (patch) | |
tree | 8995083410ca7c979955345826538873ed634aa6 /process.c | |
parent | 6c2bce70a386dfa80d5a81ce591fd09934142009 (diff) | |
download | ruby-a1ce08c5b39b848ed5f87f3cd3f75259bcb6b347.tar.gz |
* process.c (proc_spawn_v): use rb_w32_aspawn on Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1095,16 +1095,14 @@ rb_proc_exec(str) #endif #if !defined(HAVE_FORK) && defined(HAVE_SPAWNV) +#if defined(_WIN32) +#define proc_spawn_v(argv, prog) rb_w32_aspawn(P_NOWAIT, prog, argv) +#else static int proc_spawn_v(argv, prog) char **argv; char *prog; { -#if defined(_WIN32) - char *cmd = ALLOCA_N(char, rb_w32_argv_size(argv)); - if (!prog) prog = argv[0]; - return rb_w32_spawn(P_NOWAIT, rb_w32_join_argv(cmd, argv), prog); -#else char *extension; int status; @@ -1144,8 +1142,8 @@ proc_spawn_v(argv, prog) last_status_set(status == -1 ? 127 : status, 0); after_exec(); return status; -#endif } +#endif static int proc_spawn_n(argc, argv, prog) |