Page MenuHomeFreeBSD

fix lockd daemon()

Authored by on Mar 24 2021, 6:40 PM.



When lockd is configured with a debug level of > 0 and foreground == 0, the process is daemonized with a truth noclose argument to daemon(). This doesn't seem to be the desired behavior because that prevents stdout and stderr from being closed, however, stdout and stderr aren't used anywhere else. Furthermore, the man pages state that with a higher debug level it will use the syslog facilities to do so.

Sponsored by: iXsystems

Diff Detail

rG FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline created this revision.
This revision is now accepted and ready to land.Mar 24 2021, 6:56 PM

Do whatever you like with it. If I could do so,
it wouldn't exist at all. (Long ago I refused to
implement the NLM, due to lack of documentation
and a fundamtentably non-fault tolerant protocol.)