diff options
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r-- | networking/udhcp/script.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c index 7876dd3c7..0f2a21c3a 100644 --- a/networking/udhcp/script.c +++ b/networking/udhcp/script.c | |||
@@ -225,7 +225,7 @@ void run_script(struct dhcpMessage *packet, const char *name) | |||
225 | return; | 225 | return; |
226 | 226 | ||
227 | /* call script */ | 227 | /* call script */ |
228 | pid = fork(); | 228 | pid = vfork(); |
229 | if (pid) { | 229 | if (pid) { |
230 | waitpid(pid, NULL, 0); | 230 | waitpid(pid, NULL, 0); |
231 | return; | 231 | return; |
@@ -235,7 +235,9 @@ void run_script(struct dhcpMessage *packet, const char *name) | |||
235 | /* close fd's? */ | 235 | /* close fd's? */ |
236 | 236 | ||
237 | /* exec script */ | 237 | /* exec script */ |
238 | #ifndef __uClinux__ | ||
238 | DEBUG(LOG_INFO, "execle'ing %s", client_config.script); | 239 | DEBUG(LOG_INFO, "execle'ing %s", client_config.script); |
240 | #endif /* __uClinux__ */ | ||
239 | execle(client_config.script, client_config.script, | 241 | execle(client_config.script, client_config.script, |
240 | name, NULL, envp); | 242 | name, NULL, envp); |
241 | LOG(LOG_ERR, "script %s failed: %m", client_config.script); | 243 | LOG(LOG_ERR, "script %s failed: %m", client_config.script); |