[BusyBox-cvs] busybox/networking/udhcp script.c,1.9,1.10

Russ Dill russ at busybox.net
Wed Dec 24 19:30:30 UTC 2003


Update of /var/cvs/busybox/networking/udhcp
In directory nail:/tmp/cvs-serv17115

Modified Files:
	script.c 
Log Message:
move debugging to safe place (before vfork)

Index: script.c
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/script.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- script.c	18 Dec 2003 22:25:38 -0000	1.9
+++ script.c	24 Dec 2003 19:30:27 -0000	1.10
@@ -208,6 +208,8 @@
 	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 @@
 		/* 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);




More information about the busybox-cvs mailing list