move debugging to safe place (before vfork)
This commit is contained in:
parent
b90502828c
commit
a8992635b1
@ -208,6 +208,8 @@ void run_script(struct dhcpMessage *packet, const char *name)
|
|||||||
if (client_config.script == NULL)
|
if (client_config.script == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
DEBUG(LOG_INFO, "vforking and execle'ing %s", client_config.script);
|
||||||
|
|
||||||
/* call script */
|
/* call script */
|
||||||
pid = vfork();
|
pid = vfork();
|
||||||
if (pid) {
|
if (pid) {
|
||||||
@ -219,9 +221,6 @@ void run_script(struct dhcpMessage *packet, const char *name)
|
|||||||
/* close fd's? */
|
/* close fd's? */
|
||||||
|
|
||||||
/* exec script */
|
/* exec script */
|
||||||
#ifndef __uClinux__
|
|
||||||
DEBUG(LOG_INFO, "execle'ing %s", client_config.script);
|
|
||||||
#endif /* __uClinux__ */
|
|
||||||
execle(client_config.script, client_config.script,
|
execle(client_config.script, client_config.script,
|
||||||
name, NULL, envp);
|
name, NULL, envp);
|
||||||
LOG(LOG_ERR, "script %s failed: %m", client_config.script);
|
LOG(LOG_ERR, "script %s failed: %m", client_config.script);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user