aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-05 22:26:02 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:28:30 +1000
commita2bb9897437838ab1a92cf4e3885d7af66211a4d (patch)
tree7c0b90b3fba9f5359282d2635de59d4c19ce9cf8 /libbb
parent6c50650c22348f43e089aae01108576022be9163 (diff)
downloadbusybox-w32-a2bb9897437838ab1a92cf4e3885d7af66211a4d.tar.gz
busybox-w32-a2bb9897437838ab1a92cf4e3885d7af66211a4d.tar.bz2
busybox-w32-a2bb9897437838ab1a92cf4e3885d7af66211a4d.zip
win32: Replace spawn() and spawn_and_wait() with Win32 version
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vfork_daemon_rexec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 07024f5f0..08d9199c1 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -25,6 +25,9 @@ pid_t FAST_FUNC spawn(char **argv)
25 volatile int failed; 25 volatile int failed;
26 pid_t pid; 26 pid_t pid;
27 27
28 if (ENABLE_PLATFORM_MINGW32)
29 return mingw_spawn(argv);
30
28 fflush_all(); 31 fflush_all();
29 32
30 /* Be nice to nommu machines. */ 33 /* Be nice to nommu machines. */
@@ -226,7 +229,7 @@ int FAST_FUNC spawn_and_wait(char **argv)
226 { 229 {
227 return run_nofork_applet(a, argv); 230 return run_nofork_applet(a, argv);
228 } 231 }
229#if BB_MMU 232#if BB_MMU && !ENABLE_PLATFORM_MINGW32
230 /* MMU only */ 233 /* MMU only */
231 /* a->noexec is true */ 234 /* a->noexec is true */
232 rc = fork(); 235 rc = fork();