Fork a child process and wait until the process terminates when the -P

option is specified. This behavior is documented on the manual page.

PR:		bin/187265
Submitted by:	Kimo R
MFC after:	2 weeks
This commit is contained in:
Jaakko Heinonen 2014-04-06 16:35:49 +00:00
parent a96fefe042
commit ceda7f069d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264194

View File

@ -139,7 +139,7 @@ main(int argc, char *argv[])
* get SIGCHLD eventually.
*/
pid = -1;
if (pidfile != NULL || restart) {
if (pidfile != NULL || ppidfile != NULL || restart) {
/*
* Restore default action for SIGTERM in case the
* parent process decided to ignore it.