"M. Warner Losh" <i...@bsdimp.com> writes:
> +             /*
> +              * Close the PID file, and all other open descriptors.
> +              * Inherit std{in,out,err} only.
> +              */
> +             cfg.close_pidfile();
> +             ::closefrom(3);

Actually, closefrom() is sufficient, since the only resource held by the
pidfile that would persist across execve() is the file descriptor (and
hence the lock).

DES
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to