Summary: | www/fcgiwrap rc script no check for pid file at onerestart | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | BB Lister <bblister> |
Component: | Individual Port(s) | Assignee: | Matthew Seaman <matthew> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | bblister, matthew |
Priority: | --- | Keywords: | needs-patch, needs-qa |
Version: | Latest | Flags: | koobs:
merge-quarterly?
|
Hardware: | Any | ||
OS: | Any |
Description
BB Lister
2017-06-02 11:21:05 UTC
The bug is reproducable if you do: rm /var/run/fcgiwrap/fcgiwrap.pid ; bash -x /usr/local/etc/rc.d/fcgiwrap onerestart A commit references this bug: Author: matthew Date: Sun Jun 4 12:07:34 UTC 2017 New revision: 442556 URL: https://svnweb.freebsd.org/changeset/ports/442556 Log: Avoid accidentally killing init or other important processes when running 'service fcgiwrap onestop' if /var/run/fcgiwrap/fcgiwrap.pid doesn't exist or contain the fcgiwrap PID. This prevents killing any processes in process groups 0 or 1 or in the caller's process group if the rc script cannot read the fcgiwrap pidfile. PR: 219724 Submitted by: bblister@gmail.com MFH: 2017Q2 Changes: head/www/fcgiwrap/Makefile head/www/fcgiwrap/files/fcgiwrap.in A commit references this bug: Author: matthew Date: Sun Jun 4 12:22:44 UTC 2017 New revision: 442557 URL: https://svnweb.freebsd.org/changeset/ports/442557 Log: MFH: r442556 Avoid accidentally killing init or other important processes when running 'service fcgiwrap onestop' if /var/run/fcgiwrap/fcgiwrap.pid doesn't exist or contain the fcgiwrap PID. This prevents killing any processes in process groups 0 or 1 or in the caller's process group if the rc script cannot read the fcgiwrap pidfile. PR: 219724 Submitted by: bblister@gmail.com Approved by: portmgr (implicit blanket: functionality fix) Changes: _U branches/2017Q2/ branches/2017Q2/www/fcgiwrap/Makefile branches/2017Q2/www/fcgiwrap/files/fcgiwrap.in Committed, thanks! |