summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2005-12-02 16:50:12 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2005-12-02 16:50:12 +0000
commit01f701c1b9bda9ac45d9b15f88eea9ffd76cbce4 (patch)
tree445403f52a5d86a1102c50adeaf3a18bdd4b92fc
parentc47d950c563f1f05a7a6c6fd8a92368751f73d86 (diff)
unlink() pid file on exit. ok deraadt@
-rw-r--r--usr.sbin/syslogd/privsep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/privsep.c b/usr.sbin/syslogd/privsep.c
index 572d30f46f6..f4e24844789 100644
--- a/usr.sbin/syslogd/privsep.c
+++ b/usr.sbin/syslogd/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.26 2005/06/06 23:20:44 djm Exp $ */
+/* $OpenBSD: privsep.c,v 1.27 2005/12/02 16:50:11 moritz Exp $ */
/*
* Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org>
@@ -341,6 +341,7 @@ priv_init(char *conf, int numeric, int lockfd, int nullfd, char *argv[])
wait(&r);
execvp(argv[0], argv);
}
+ unlink(_PATH_LOGPID);
_exit(1);
}