From owner-svn-src-all@FreeBSD.ORG Sun Feb 5 12:46:58 2012 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id CFCF21065670; Sun, 5 Feb 2012 12:46:58 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-150-251.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id CF259152746; Sun, 5 Feb 2012 12:46:54 +0000 (UTC) Message-ID: <4F2E7A3D.8080107@FreeBSD.org> Date: Sun, 05 Feb 2012 04:46:53 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0) Gecko/20120201 Thunderbird/10.0 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <201202011641.q11Gf0j6095461@svn.freebsd.org> <20120204074201.GA1694@garage.freebsd.pl> <74AF334B-CD90-4A43-96C4-1CF69C8EA42B@palisadesystems.com> <20120205095922.GD30033@garage.freebsd.pl> In-Reply-To: <20120205095922.GD30033@garage.freebsd.pl> X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFF0521E5838021636E017BFA" Cc: svn-src-head@FreeBSD.org, Guy Helmer , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r230869 - head/usr.sbin/daemon X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 12:46:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFF0521E5838021636E017BFA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/05/2012 01:59, Pawel Jakub Dawidek wrote: > I seem to miss positives of the other approach. Leaving stale PIDs in > pidfile is something we should avoid at all costs, so recommending that= > in the manual page is not the best recommendation.=20 Which is worse ... potentially stale pidfiles that get cleaned up at every boot, or stale directories that never do? I'm also not sure why you think this method will leave behind a stale pidfile. The idea is that the pidfile is pre-created with the ownership that daemon is going to su to, for the express purpose of allowing it to delete the pidfile when the process exits. If you're saying that this method doesn't work then please point out the problem ASAP because numerous ports rc.d scripts do this now. Doug --=20 It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ --------------enigFF0521E5838021636E017BFA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJPLno+AAoJEFzGhvEaGryElFgH/RvHS89EyN3lc2pyWH+jnkCv +U8RI1um7BsZXLh5DpqtgawGzz13x5pd8dikDqmbAoqWQwCJfGWksywdiQP+z/KW 0EM/0YKYH09EdzzyI1Vl+gkajreHHLfUTse19vDubCsKuqje4AqmMEmU4fz1ry6z fNm/UNUG42gJCi0ytL1RlEHc810g+akYkGWknjDav/RDUFINjQxmrNUWOI0WgBUx OdTg7MhdXK6LWP6kjaB/j2Ur8B5wCrhfrqFQpStVqreVhxl3aOM13wNsEPGHrd2Z xgSlyMOW/mYHMGXKzccLdSGwEKipGJ+OFYCygSRgyHj4uXuykm2gZFBSFWIP8qo= =WPR0 -----END PGP SIGNATURE----- --------------enigFF0521E5838021636E017BFA--