aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@asu.edu>2003-12-24 19:31:08 +0000
committerRuss Dill <Russ.Dill@asu.edu>2003-12-24 19:31:08 +0000
commita8992635b117723e65078ada845cc88a9cb77aa3 (patch)
tree34fa06761e0929703d263558803b6072df8c6f93
parentb90502828cd2178efa049a96f7bbbd9ae6355130 (diff)
downloadbusybox-w32-a8992635b117723e65078ada845cc88a9cb77aa3.tar.gz
busybox-w32-a8992635b117723e65078ada845cc88a9cb77aa3.tar.bz2
busybox-w32-a8992635b117723e65078ada845cc88a9cb77aa3.zip
move debugging to safe place (before vfork)
-rw-r--r--networking/udhcp/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index dcd2cad2d..1f74cd742 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -208,6 +208,8 @@ void run_script(struct dhcpMessage *packet, const char *name)
208 if (client_config.script == NULL) 208 if (client_config.script == NULL)
209 return; 209 return;
210 210
211 DEBUG(LOG_INFO, "vforking and execle'ing %s", client_config.script);
212
211 /* call script */ 213 /* call script */
212 pid = vfork(); 214 pid = vfork();
213 if (pid) { 215 if (pid) {
@@ -219,9 +221,6 @@ void run_script(struct dhcpMessage *packet, const char *name)
219 /* close fd's? */ 221 /* close fd's? */
220 222
221 /* exec script */ 223 /* exec script */
222#ifndef __uClinux__
223 DEBUG(LOG_INFO, "execle'ing %s", client_config.script);
224#endif /* __uClinux__ */
225 execle(client_config.script, client_config.script, 224 execle(client_config.script, client_config.script,
226 name, NULL, envp); 225 name, NULL, envp);
227 LOG(LOG_ERR, "script %s failed: %m", client_config.script); 226 LOG(LOG_ERR, "script %s failed: %m", client_config.script);