busybox: add 1.18.2 libbb fix
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Feb 2011 18:49:50 +0000 (19:49 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Feb 2011 18:49:50 +0000 (19:49 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/busybox/busybox-1.18.2/busybox-1.18.2-libbb.patch [new file with mode: 0644]

diff --git a/package/busybox/busybox-1.18.2/busybox-1.18.2-libbb.patch b/package/busybox/busybox-1.18.2/busybox-1.18.2-libbb.patch
new file mode 100644 (file)
index 0000000..aa7e75d
--- /dev/null
@@ -0,0 +1,10 @@
+--- busybox-1.18.2/libbb/vfork_daemon_rexec.c
++++ busybox-1.18.2-libbb/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;
+       }