diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-12-02 16:50:12 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-12-02 16:50:12 +0000 |
commit | 01f701c1b9bda9ac45d9b15f88eea9ffd76cbce4 (patch) | |
tree | 445403f52a5d86a1102c50adeaf3a18bdd4b92fc /usr.sbin | |
parent | c47d950c563f1f05a7a6c6fd8a92368751f73d86 (diff) |
unlink() pid file on exit. ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/privsep.c | 3 |
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); } |