*: more readable handling of pipe fds. No code changes.
[oweals/busybox.git] / networking / udhcp / script.c
index 8a188988e3f6ad8bbf9a0c06a9c6e27cf4ac3f2f..71f0333280bdbc2b8f6882c4c5129819973fc9f3 100644 (file)
@@ -232,7 +232,7 @@ void udhcp_run_script(struct dhcpMessage *packet, const char *name)
                       name, NULL, envp);
                bb_perror_msg_and_die("script %s failed", client_config.script);
        }
-       waitpid(pid, NULL, 0);
+       safe_waitpid(pid, NULL, 0);
        for (curr = envp; *curr; curr++)
                free(*curr);
        free(envp);