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.
Remove @ts and @tsp variables. These were originally used as a timeout
in kevent(). If needdofsync was true, the timeout would be set to 0, and
dofsync() would be called. A simple if-statement can avoid this dance,
checking if needdofsync is set before kevent() is called.