aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-05-27 15:10:16 +0100
committerRon Yorston <rmy@pobox.com>2015-05-27 15:10:16 +0100
commit42c4505e1e5eb96314176e7b7c1b28adcce22310 (patch)
tree4cbcb93cc55ace0c1e41c03d01fc0711b0ad677f /libbb
parent0711c1f4eda3f10d8295ca0d9eb50e1a380baa86 (diff)
downloadbusybox-w32-42c4505e1e5eb96314176e7b7c1b28adcce22310.tar.gz
busybox-w32-42c4505e1e5eb96314176e7b7c1b28adcce22310.tar.bz2
busybox-w32-42c4505e1e5eb96314176e7b7c1b28adcce22310.zip
mingw: define a macro for spawn
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vfork_daemon_rexec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 6611dabfa..de4d14fce 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -17,6 +17,7 @@
17 17
18#include "busybox.h" /* uses applet tables */ 18#include "busybox.h" /* uses applet tables */
19 19
20#if !ENABLE_PLATFORM_MINGW32
20/* This does a fork/exec in one call, using vfork(). Returns PID of new child, 21/* This does a fork/exec in one call, using vfork(). Returns PID of new child,
21 * -1 for failure. Runs argv[0], searching path if that has no / in it. */ 22 * -1 for failure. Runs argv[0], searching path if that has no / in it. */
22pid_t FAST_FUNC spawn(char **argv) 23pid_t FAST_FUNC spawn(char **argv)
@@ -25,9 +26,6 @@ pid_t FAST_FUNC spawn(char **argv)
25 volatile int failed; 26 volatile int failed;
26 pid_t pid; 27 pid_t pid;
27 28
28 if (ENABLE_PLATFORM_MINGW32)
29 return mingw_spawn(argv);
30
31 fflush_all(); 29 fflush_all();
32 30
33 /* Be nice to nommu machines. */ 31 /* Be nice to nommu machines. */
@@ -61,6 +59,7 @@ pid_t FAST_FUNC spawn(char **argv)
61 } 59 }
62 return pid; 60 return pid;
63} 61}
62#endif
64 63
65/* Die with an error message if we can't spawn a child process. */ 64/* Die with an error message if we can't spawn a child process. */
66pid_t FAST_FUNC xspawn(char **argv) 65pid_t FAST_FUNC xspawn(char **argv)