aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index 574c74f45..a74697c90 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -271,7 +271,7 @@ void FAST_FUNC udhcp_run_script(struct dhcp_packet *packet, const char *name)
argv[0] = (char*) client_config.script;
argv[1] = (char*) name;
argv[2] = NULL;
- wait4pid(spawn(argv));
+ spawn_and_wait(argv);
for (curr = envp; *curr; curr++) {
log2(" %s", *curr);