summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-22 18:26:04 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-22 18:26:04 +0000
commit041a77905509f056c270536af97c21d430bc392d (patch)
treeda3a00f56a190101779c9c94efd4a2ffeb05bfba /usr.sbin/lpr/lpd
parent13096a8e7dd3222590cb3328763a16e7f8143473 (diff)
unlink lpd.pid if killed by a signal
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index 21e5e8b5fcf..ddb34591d6a 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.30 2002/05/22 18:24:35 millert Exp $ */
+/* $OpenBSD: lpd.c,v 1.31 2002/05/22 18:26:03 millert Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-static const char rcsid[] = "$OpenBSD: lpd.c,v 1.30 2002/05/22 18:24:35 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpd.c,v 1.31 2002/05/22 18:26:03 millert Exp $";
#endif
#endif /* not lint */
@@ -438,6 +438,7 @@ mcleanup(int signo)
if (lflag)
syslog_r(LOG_INFO, &sdata, "exiting");
unlink(_PATH_SOCKETNAME);
+ unlink(_PATH_MASTERLOCK);
_exit(0);
}