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)
Tue, Mar 12, 4:13 AM
Unknown Object (File)
Fri, Mar 8, 4:53 AM
Unknown Object (File)
Fri, Mar 8, 4:53 AM
Unknown Object (File)
Fri, Mar 8, 4:40 AM
Unknown Object (File)
Feb 7 2024, 8:22 PM
Unknown Object (File)
Dec 22 2023, 10:24 PM
Unknown Object (File)
Dec 17 2023, 7:20 AM
Unknown Object (File)
Dec 12 2023, 3:04 PM
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 Skipped
Unit
Tests Skipped

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