aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
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)