mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
unlink() pid file on exit. ok deraadt@
This commit is contained in:
parent
27ea85b6ab
commit
2f2a83bb76
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user