diff options
author | Evan Hunt <each@isc.org> | 2007-10-27 19:04:03 +0000 |
---|---|---|
committer | Evan Hunt <each@isc.org> | 2007-10-27 19:04:03 +0000 |
commit | 250ac666a684c8e58e248db7ea9ceb50e61a04c9 (patch) | |
tree | 4452f4052c483eb3d6c16408ddc7fb0ca15fd689 /client | |
parent | 78f47ec89d0dae207444b7ae2adf48935b38d4af (diff) | |
download | isc-dhcp-250ac666a684c8e58e248db7ea9ceb50e61a04c9.tar.gz |
Don't remove PID files before writing to them [rt17030]
Diffstat (limited to 'client')
-rw-r--r-- | client/dhclient.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/dhclient.c b/client/dhclient.c index 2483a34d..ea07e7ea 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -32,7 +32,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhclient.c,v 1.143.2.7 2007/10/26 22:55:37 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.143.2.8 2007/10/27 19:04:03 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -260,10 +260,8 @@ int main (argc, argv, envp) oldpid = (pid_t)temp; if (e != 0 && e != EOF) { - if (oldpid) { - if (kill(oldpid, SIGTERM) == 0) - unlink(path_dhclient_pid); - } + if (oldpid) + kill(oldpid, SIGTERM); } fclose(pidfd); } |