svn commit: r267463 - stable/9/usr.sbin/daemon
Ed Maste
emaste at FreeBSD.org
Sat Jun 14 01:32:49 UTC 2014
Author: emaste
Date: Sat Jun 14 01:32:48 2014
New Revision: 267463
URL: http://svnweb.freebsd.org/changeset/base/267463
Log:
MFC r264194: fix handling of -P without -p or -r
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: 187265, 190643
Approved by: re
Modified:
stable/9/usr.sbin/daemon/daemon.c
Directory Properties:
stable/9/usr.sbin/daemon/ (props changed)
Modified: stable/9/usr.sbin/daemon/daemon.c
==============================================================================
--- stable/9/usr.sbin/daemon/daemon.c Sat Jun 14 01:24:22 2014 (r267462)
+++ stable/9/usr.sbin/daemon/daemon.c Sat Jun 14 01:32:48 2014 (r267463)
@@ -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.
More information about the svn-src-stable-9
mailing list