Setup consfile filed for logging while Initialized is false, but do not bother opening the console. Close console/tty descriptors after parsing, as well. The ttymsg() function will re-open these descriptors for us. Also, remove references to the ctty global variable since it will always be _PATH_CONSOLE.
Details
Details
- Reviewers
markj emaste - Commits
- rGc3175a6e1c5a: syslogd: Do not open console descriptor
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Move consfile setup before waitdaemon() to align with nulldesc ordering in https://reviews.freebsd.org/D41381