Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jun 2014 03:47:50 +0000
From:      bz-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 190643] New: /usr/sbin/daemon -P option does not work as documented
Message-ID:  <bug-190643-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190643

            Bug ID: 190643
           Summary: /usr/sbin/daemon -P option does not work as documented
           Product: Base System
           Version: 9.2-STABLE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: barney@databus.com

If daemon's -P option is used without the -p option, the pidfile is not removed
when the process terminates.  To demonstrate:
/usr/sbin/daemon -P pid.daemon sleep 5
After sleep terminates, pid.daemon is left around, pointing to a nonexistent
process.  It also seems that there is no separate daemon process, as the
pid.daemon file points to the sleep process.

The danger of leaving the pidfile around is of course when pids cycle around an
unintended process might be terminated.

This might be treated as a documentation bug, as using -P without -p or -r is
at least unusual.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-190643-8>