diff options
author | jh <jh@FreeBSD.org> | 2014-04-06 16:35:49 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2014-04-06 16:35:49 +0000 |
commit | d8d70b37e358a21eb43279c7b10f54f75053ed92 (patch) | |
tree | 9fb6c9fbf5f97e119a2adeb1cf9051174722aa9f /usr.sbin/daemon | |
parent | 2e86f49ec8904342444286fc06d9b46ed245052c (diff) | |
download | FreeBSD-src-d8d70b37e358a21eb43279c7b10f54f75053ed92.zip FreeBSD-src-d8d70b37e358a21eb43279c7b10f54f75053ed92.tar.gz |
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
Diffstat (limited to 'usr.sbin/daemon')
-rw-r--r-- | usr.sbin/daemon/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index 322c0d4..7bdd2a6 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -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. |