Wrong Handling of pid files (example: fcgiwrap) forces single user mode. Am I correct?

Matthew Seaman matthew at FreeBSD.org
Fri Jun 2 10:57:11 UTC 2017

On 2017/06/02 11:02, BBlister wrote:
> The problem is that if the ${pidfile} does not exist then this command
> returns the PID 1 among other PIDS, like this:
> /bin/ps -o ppid= $(cat /var/run/fcgiwrap/fcgiwrap.pid)
> cat: /var/run/fcgiwrap/fcgiwrap.pid: No such file or directory
> 72303
>     1
> 71730
> 72092
>     1
>     1
>     1
> and then using a command  kill -TERM -- -${fcgiwrap_pgrp}
> terminates all these pids.

Please can you open a PR at https://bugs.freebsd.org/bugzilla/ detailing
your findings?  This is something that should be fixed in the fcgiwrap
port, and it is quite possible that other RC scripts also have the same



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170602/96b3e880/attachment.sig>

More information about the freebsd-questions mailing list