Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2005 19:14:37 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Yar Tikhiy <yar@comp.chem.msu.su>
Cc:        Hajimu UMEMOTO <ume@FreeBSD.org>, FreeBSD-arch <freebsd-arch@FreeBSD.org>
Subject:   Re: New library: libpidfile.
Message-ID:  <20050824171437.GA755@garage.freebsd.pl>
In-Reply-To: <20050824134540.GA94265@comp.chem.msu.su>
References:  <20050822213028.GB4812@garage.freebsd.pl> <ygek6id48nn.wl%ume@mahoroba.org> <20050823080754.GA47261@garage.freebsd.pl> <20050823202656.GB30465@funkthat.com> <20050824134540.GA94265@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 24, 2005 at 05:45:40PM +0400, Yar Tikhiy wrote:
+> > /me just checked NetBSD and OpenBSD's code at:
+> > http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libutil/pidfile.c?rev=3D1.=
7&content-type=3Dtext/x-cvsweb-markup
+> > http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/pidfile.c?rev=3D=
1.7&content-type=3Dtext/x-cvsweb-markup
+> >=20
+> > Neither, of these are safe to prevent multiple daemons from starting
+> > up at the same time...  Both NetBSD and OpenBSD doesn't even check if
+> > a daemon is running.. it just blindly splats the pid into the file..
+>=20
+> Of course, giving advices is much easier than doing the real work,
+> but I dare suggest cooperation with NetBSD and OpenBSD on this issue
+> so that eventually we have a good and compatible implementation of
+> the pidfile API in *BSD.  I believe that the NetBSD and OpenBSD
+> folks won't take offence if approached with a well-grounded explanation
+> of why their current pidfile functions suck.

They are of course free to adpot pidfile(3) and I'll gladly provide
all needed explanations if they'll ask me.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--Kj7319i9nmIyA2yE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFDDKr9ForvXbEpPzQRAtyJAJ9QH9CixrM4vgH6g2qwoAVvvmQBcgCg9zjc
+V5BcBYqgYbb86d7nMY4GjA=
=saAv
-----END PGP SIGNATURE-----

--Kj7319i9nmIyA2yE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050824171437.GA755>