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:
parent
a96fefe042
commit
ceda7f069d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user