Page MenuHomeFreeBSD

fix lockd daemon()
ClosedPublic

Authored by yocalebo_gmail.com on Wed, Mar 24, 6:40 PM.

Details

Summary

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

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

yocalebo_gmail.com created this revision.
This revision is now accepted and ready to land.Wed, Mar 24, 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.)