diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 5e0fb0d73..0c879f68f 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -52,6 +52,7 @@ pid_t FAST_FUNC spawn(char **argv) | |||
52 | * Interested party can wait on pid and learn exit code. | 52 | * Interested party can wait on pid and learn exit code. |
53 | * If 111 - then it (most probably) failed to exec */ | 53 | * If 111 - then it (most probably) failed to exec */ |
54 | if (failed) { | 54 | if (failed) { |
55 | safe_waitpid(pid, NULL, 0); /* prevent zombie */ | ||
55 | errno = failed; | 56 | errno = failed; |
56 | return -1; | 57 | return -1; |
57 | } | 58 | } |