Re: New library: libpidfile.

From: Stefan Bethke (stb_at_lassitu.de)
Date: 08/23/05

  • Next message: Peter Jeremy: "Re: New library: libpidfile."
    Date: Tue, 23 Aug 2005 10:25:09 +0200
    To: Pawel Jakub Dawidek <pjd@freebsd.org>
    
    

    Random thoughts:

    Am 22.08.2005 um 23:30 schrieb Pawel Jakub Dawidek:

    > if (pidfile_open("/var/run/daemon.pid", 0644, &otherpid) == -1) {

    > pidfile_write();

    > pidfile_close();

    I can't really think of a case that would need it, but wouldn't it
    make sense to have pidfile_open return a handle, and use that in the
    subsequent calls? Just in case anyone would ever need more than one...

    Does this API have any implications for privsep'ed daemons?

    Stefan

    -- 
    Stefan Bethke <stb@lassitu.de>   Fon +49 170 346 0140
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Peter Jeremy: "Re: New library: libpidfile."

    Relevant Pages