summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2003-04-14 13:08:43 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2003-04-14 13:08:43 +0000
commitdd14412019a8a57fb6e3e3affdf91e93b11f4b35 (patch)
tree588251927b09b862ad450c5a58f7be2f86a154af /sbin/isakmpd
parent8c473f348c9358861a2107f1e70f242d36e0f223 (diff)
Unlink FIFO and pid files on clean shutdown. PR#3199
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/isakmpd.c5
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);
}