From 01f701c1b9bda9ac45d9b15f88eea9ffd76cbce4 Mon Sep 17 00:00:00 2001 From: Moritz Jodeit Date: Fri, 2 Dec 2005 16:50:12 +0000 Subject: unlink() pid file on exit. ok deraadt@ --- usr.sbin/syslogd/privsep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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); } -- cgit v1.2.3