New library: libpidfile.

Stefan Bethke stb at lassitu.de
Tue Aug 23 08:25:09 GMT 2005


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 at lassitu.de>   Fon +49 170 346 0140




More information about the freebsd-arch mailing list