Re: New library: libpidfile.

From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 08/24/05

  • Next message: Yar Tikhiy: "Re: New library: libpidfile."
    Date: Wed, 24 Aug 2005 19:14:37 +0200
    To: Yar Tikhiy <yar@comp.chem.msu.su>
    
    
    

    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@FreeBSD.org                           http://www.FreeBSD.org
    FreeBSD committer                         Am I Evil? Yes, I Am!
    
    



  • Next message: Yar Tikhiy: "Re: New library: libpidfile."

    Relevant Pages