diff options
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 214b645..6495222 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c @@ -158,12 +158,15 @@ int spawn_and_wait(char **argv) if (rc) goto w; /* child */ + xfunc_error_retval = EXIT_FAILURE; current_applet = a; run_current_applet_and_exit(argc, argv); #endif } rc = spawn(argv); +#ifndef BB_NOMMU w: +#endif return wait4pid(rc); #else /* !FEATURE_PREFER_APPLETS */ return wait4pid(spawn(argv)); |