[Bug 197379] Add an option to run `syslogd' in the foreground
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 6 19:45:05 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197379
Bug ID: 197379
Summary: Add an option to run `syslogd' in the foreground
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: rpokala at panasas.com
Created attachment 152635
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152635&action=edit
Add a '-F' option to make `syslogd' run in the foreground
There is a narrow window while `syslogd' is restarting (such as when getting
restarted by `newsyslog') wherein it might die, without cleaning up its PID
file. (syslogd.c:waitdaemon() - if fork() fails, waitdaemon() calls errx(), and
thus never returns. pidfile_remove() only gets called if waitdaemon() returns a
negative value.)
For this and other reasons, we've modified `syslogd' to run in the foreground,
so a nanny process can immediately detect it exiting and restart it if needed.
The attached patch adds a '-F' command-line argument to make `syslogd' run in
foreground mode.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list