Date: Tue, 23 Aug 2005 10:25:09 +0200 From: Stefan Bethke <stb@lassitu.de> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: FreeBSD-arch <freebsd-arch@freebsd.org> Subject: Re: New library: libpidfile. Message-ID: <D760B799-DF23-49F2-82D0-629F26E8E1D6@lassitu.de> In-Reply-To: <20050822213028.GB4812@garage.freebsd.pl> References: <20050822213028.GB4812@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D760B799-DF23-49F2-82D0-629F26E8E1D6>