Page MenuHomeFreeBSD

fix lockd daemon()
ClosedPublic

Authored by yocalebo_gmail.com on Mar 24 2021, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 8:37 AM
Unknown Object (File)
Oct 10 2024, 5:04 AM
Unknown Object (File)
Oct 10 2024, 5:03 AM
Unknown Object (File)
Oct 10 2024, 5:03 AM
Unknown Object (File)
Oct 10 2024, 4:37 AM
Unknown Object (File)
Oct 5 2024, 1:01 AM
Unknown Object (File)
Oct 4 2024, 11:38 PM
Unknown Object (File)
Oct 2 2024, 9:59 AM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

yocalebo_gmail.com 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.)