diff options
Diffstat (limited to 'libbb')
-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 214b645c5..64952225d 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -158,12 +158,15 @@ int spawn_and_wait(char **argv) | |||
158 | if (rc) | 158 | if (rc) |
159 | goto w; | 159 | goto w; |
160 | /* child */ | 160 | /* child */ |
161 | xfunc_error_retval = EXIT_FAILURE; | ||
161 | current_applet = a; | 162 | current_applet = a; |
162 | run_current_applet_and_exit(argc, argv); | 163 | run_current_applet_and_exit(argc, argv); |
163 | #endif | 164 | #endif |
164 | } | 165 | } |
165 | rc = spawn(argv); | 166 | rc = spawn(argv); |
167 | #ifndef BB_NOMMU | ||
166 | w: | 168 | w: |
169 | #endif | ||
167 | return wait4pid(rc); | 170 | return wait4pid(rc); |
168 | #else /* !FEATURE_PREFER_APPLETS */ | 171 | #else /* !FEATURE_PREFER_APPLETS */ |
169 | return wait4pid(spawn(argv)); | 172 | return wait4pid(spawn(argv)); |