mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264194
@ -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