Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2017 11:56:58 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Wrong Handling of pid files (example: fcgiwrap) forces single user mode. Am I correct?
Message-ID:  <e1396bfd-df54-39ef-0ba6-efccb5052646@FreeBSD.org>
In-Reply-To: <1496397748172-6189171.post@n6.nabble.com>
References:  <1496397748172-6189171.post@n6.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--dV7glM6KVk09qDb0L38XWw5ifNuhPqvSO
Content-Type: multipart/mixed; boundary="3DQXJGtMHIwxhcd0CoVWsH9snSdkgmgfS";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-questions@freebsd.org
Message-ID: <e1396bfd-df54-39ef-0ba6-efccb5052646@FreeBSD.org>
Subject: Re: Wrong Handling of pid files (example: fcgiwrap) forces single
 user mode. Am I correct?
References: <1496397748172-6189171.post@n6.nabble.com>
In-Reply-To: <1496397748172-6189171.post@n6.nabble.com>

--3DQXJGtMHIwxhcd0CoVWsH9snSdkgmgfS
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

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:
>=20
> /bin/ps -o ppid=3D $(cat /var/run/fcgiwrap/fcgiwrap.pid)
>=20
> cat: /var/run/fcgiwrap/fcgiwrap.pid: No such file or directory
> 72303
>     1
> 71730
> 72092
>     1
>     1
>     1
> =20
> 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
flaw.

	Cheers,

	Matthew



--3DQXJGtMHIwxhcd0CoVWsH9snSdkgmgfS--

--dV7glM6KVk09qDb0L38XWw5ifNuhPqvSO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQJ8BAEBCgBmBQJZMUSEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnghcP/0P6PqIdUEEwnPxo+Lk2OR3k
0JBbzEOlpowqWnyxMtsO8KDEHWIHL+156IkX/PYAIYny8W8WnRFqSJDV+4JEq5GP
XAz3vZYu6zo50FmHJAdbb+sYPfkgs3YPQ9mV9R6eudfet7hpjNU3xHEGC9YT4Qh1
tScOAIK85OPkhNOKo4u9J+GMoMvh8KPwJCcB4hha0Kwxt/B1PW91sG9yiQtPPSw5
NEo80LYzAvLp9i0RYYZIEpEK28Ym74QLPZYplztQidCmsx+khFefJzyQLDMw5LqM
JBfqxyThkfYJHmeN8g5FHYWkvsnV1jm5SONVoLVryiqIwWgYG2FD2k2R2/Tq9MRe
3uGJc+m0nJ5omaeGycmQGC/VgTqdODEEaQSGefwyV2lCZNg3/cpp74w86Abto2oO
WccZDzjxYDlS77k13JaAwF7Qvd/yrjtdSZSDPbsVKoSpmUc7j2Vq5Jwvrpfkmm/p
R1hrEQKEddLFPX35MZdj15HGM+QJlmtn2mThz4uTrbIl+kG0xiGMhUg+AKn4MFB9
na9IYsbBPZLKJBSzSSA9zQRjFRpJ8vkeWkBpeNJkfDNTHpODZSUsoE5pdPzUs972
KqKl5yZlWqX+7YQSDveCsnW0bB+sGUHEEC43jiTGRF+zFYrqw3apX9yud9XFezJD
aTztzIx99CZzHH5PZJGp
=Nbt8
-----END PGP SIGNATURE-----

--dV7glM6KVk09qDb0L38XWw5ifNuhPqvSO--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e1396bfd-df54-39ef-0ba6-efccb5052646>