17 lines
433 B
Plaintext
17 lines
433 B
Plaintext
--- client/dhclient.c.orig Wed Jun 20 05:03:59 2001
|
|
+++ client/dhclient.c Mon Jul 16 14:30:00 2001
|
|
@@ -2558,6 +2558,13 @@
|
|
wstatus = 0;
|
|
}
|
|
} else {
|
|
+ if ((i = open("/dev/null", O_RDWR)) != -1) {
|
|
+ dup2(i, STDIN_FILENO);
|
|
+ dup2(i, STDOUT_FILENO);
|
|
+ dup2(i, STDERR_FILENO);
|
|
+ if (i > STDERR_FILENO)
|
|
+ close(i);
|
|
+ }
|
|
execve (scriptName, argv, envp);
|
|
log_error ("execve (%s, ...): %m", scriptName);
|
|
exit (0);
|