mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +00:00
Make sure we delete the PID file when we exit.
Obtained from: OpenBSD rev 1.3 (this semi-security fix was hidden as a lease time fix)
This commit is contained in:
parent
ac7ba92669
commit
6ad39c5859
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63625
|
@ -307,6 +307,8 @@ static void usage (appname)
|
|||
|
||||
void cleanup ()
|
||||
{
|
||||
/* Make sure the pidfile is gone. */
|
||||
unlink (path_dhclient_pid);
|
||||
}
|
||||
|
||||
/* Individual States:
|
||||
|
|
Loading…
Reference in a new issue