From 92e531458a6c0e6464fbdc1463f91edc7fb752c7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 8 Feb 2011 18:34:03 +0100 Subject: Apply post-1.18.2 fixes, bump version to 1.18.3 Signed-off-by: Denys Vlasenko --- libbb/vfork_daemon_rexec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb/vfork_daemon_rexec.c') 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) * Interested party can wait on pid and learn exit code. * If 111 - then it (most probably) failed to exec */ if (failed) { + safe_waitpid(pid, NULL, 0); /* prevent zombie */ errno = failed; return -1; } -- cgit v1.2.3-55-g6feb