New library: libpidfile.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Aug 24 17:15:07 GMT 2005
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=1.7&content-type=text/x-cvsweb-markup
+> > http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/pidfile.c?rev=1.7&content-type=text/x-cvsweb-markup
+> >
+> > 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..
+>
+> 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.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20050824/1d49c96f/attachment.bin
More information about the freebsd-arch
mailing list