From owner-freebsd-questions@freebsd.org Fri Jun 2 10:57:11 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0B59BF4FA9 for ; Fri, 2 Jun 2017 10:57:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B8E983506 for ; Fri, 2 Jun 2017 10:57:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from host-4-75.office.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id A1854380A for ; Fri, 2 Jun 2017 10:57:08 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/A1854380A; dkim=none; dkim-atps=neutral Subject: Re: Wrong Handling of pid files (example: fcgiwrap) forces single user mode. Am I correct? To: freebsd-questions@freebsd.org References: <1496397748172-6189171.post@n6.nabble.com> From: Matthew Seaman Message-ID: Date: Fri, 2 Jun 2017 11:56:58 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1496397748172-6189171.post@n6.nabble.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dV7glM6KVk09qDb0L38XWw5ifNuhPqvSO" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 10:57:11 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dV7glM6KVk09qDb0L38XWw5ifNuhPqvSO Content-Type: multipart/mixed; boundary="3DQXJGtMHIwxhcd0CoVWsH9snSdkgmgfS"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: 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--