projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b905028
)
move debugging to safe place (before vfork)
author
Russ Dill
<Russ.Dill@asu.edu>
Wed, 24 Dec 2003 19:31:08 +0000
(19:31 -0000)
committer
Russ Dill
<Russ.Dill@asu.edu>
Wed, 24 Dec 2003 19:31:08 +0000
(19:31 -0000)
networking/udhcp/script.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/script.c
b/networking/udhcp/script.c
index dcd2cad2d6358f3f1c88663ba603233183ab6aab..1f74cd74281a60864fa3eb4e8eabbc890171c9cd 100644
(file)
--- a/
networking/udhcp/script.c
+++ b/
networking/udhcp/script.c
@@
-208,6
+208,8
@@
void run_script(struct dhcpMessage *packet, const char *name)
if (client_config.script == NULL)
return;
+ DEBUG(LOG_INFO, "vforking and execle'ing %s", client_config.script);
+
/* call script */
pid = vfork();
if (pid) {
@@
-219,9
+221,6
@@
void run_script(struct dhcpMessage *packet, const char *name)
/* close fd's? */
/* exec script */
-#ifndef __uClinux__
- DEBUG(LOG_INFO, "execle'ing %s", client_config.script);
-#endif /* __uClinux__ */
execle(client_config.script, client_config.script,
name, NULL, envp);
LOG(LOG_ERR, "script %s failed: %m", client_config.script);