Re: /etc/rc.d locking devd.pid

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Mon, 19 Oct 2009 13:48:54 +0200
Kostik Belousov <kostikbel_at_gmail.com> writes:
> Why ? We definitely leak file descriptor on exec(2) unless daemon
> explicitely closes it after fork. I said that it is unobvious is it
> right to enforce FD_CLOEXEC unconditionally, because some daemons
> exec() itself to reinitialize.

Sorry, you're right, FD_CLOEXEC does not affect fork(2).

Anyway - I'm writing regression tests for pidfile(3).  Please don't
commit anything until they're done.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Oct 19 2009 - 09:48:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC