Previously, syslogd's daemon process would signal that it had finished
initialization using SIGALRM. In capability mode, signal delivery is not
allowed, so use a pipe to indicate that it is ready to accept messages.
After the initial fsync,Remove @ts and @tsp will be set to NULLvariables. Initialize needdofsyncThese were originally used as a timeout
in kevent(). If needdofsync was true from the beginninge, the timeout would be set to 0, forcing the use of @ts in kevent() before theand
initial dofsync. This way,() would be called. @tsp is never altered and may be replaced withA simple if-statement can avoid this dance,
NULLchecking if needdofsync is set before kevent() is called.