/etc/rc.d locking devd.pid
Dag-Erling Smørgrav
des at des.no
Mon Oct 19 11:48:57 UTC 2009
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
More information about the freebsd-current
mailing list