https://bugzilla.novell.com/show_bug.cgi?id=732910
https://bugzilla.novell.com/show_bug.cgi?id=732910#c37
--- Comment #37 from Phil Bertin 2011-12-24 14:54:04 UTC ---
from dhclient.c (lines 3280 and following)
pid = fork ();
if (pid < 0) {
log_error ("fork: %m");
wstatus = 0;
} else if (pid) {
--> parent do {
wpid = wait (&wstatus);
} while (wpid != pid && wpid > 0);
if (wpid < 0) {
log_error ("wait: %m");
wstatus = 0;
}
} else {
/* We don't want to pass an open file descriptor for
* dhclient.leases when executing dhclient-script.
*/
--> child if (leaseFile != NULL)
fclose(leaseFile);
execve (scriptName, argv, envp);
log_error ("execve (%s, ...): %m", scriptName);
exit (0);
}
There is "an" error in the execve- call, as the "execve ..." message wouldn't
otherwise be reflected in the logs. This means that something has gone wrong in
that call, as it wouldn't otherwise return.
Regardless of the lsof- outputs we've seen, aren't the open files in this
returned child process possibly differently setup (again) ?
In any case, the call to log_error writes to fd 2 !
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.