diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2003-04-14 13:08:43 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2003-04-14 13:08:43 +0000 |
commit | dd14412019a8a57fb6e3e3affdf91e93b11f4b35 (patch) | |
tree | 588251927b09b862ad450c5a58f7be2f86a154af /sbin/isakmpd | |
parent | 8c473f348c9358861a2107f1e70f242d36e0f223 (diff) |
Unlink FIFO and pid files on clean shutdown. PR#3199
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/isakmpd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c index 39c28ea8761..a29812e7484 100644 --- a/sbin/isakmpd/isakmpd.c +++ b/sbin/isakmpd/isakmpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isakmpd.c,v 1.48 2002/12/03 20:05:10 ho Exp $ */ +/* $OpenBSD: isakmpd.c,v 1.49 2003/04/14 13:08:42 ho Exp $ */ /* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */ /* @@ -318,6 +318,9 @@ daemon_shutdown (void) #ifdef USE_DEBUG log_packet_stop (); #endif + /* Remove FIFO and pid files. */ + unlink (ui_fifo); + unlink (pid_file); log_print ("isakmpd: exit"); exit (0); } |