logging: Notify parent when logging daemon is up
commit58d499d3aea2ff3331f438aac4543e3906228570
authorMartin Schwenke <martin@meltin.net>
Mon, 17 Jun 2013 05:14:53 +0000 (17 15:14 +1000)
committerMartin Schwenke <martin@meltin.net>
Thu, 20 Jun 2013 03:01:10 +0000 (20 13:01 +1000)
tree6db0ac547b8e4101020d22b994017b5f99766f57
parent6317285c4fb73e7cda6e02921da4bb4d210326f9
logging: Notify parent when logging daemon is up

Messages are lost until it is really up because syslogd_is_started is
set too early.  Adding a pipe to do the notification allows the parent
to wait and only set syslogd_is_started when the logging daemon is
actually ready.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit f3dd2eec200d6eeada2ea19cd7e76f1edfad6167)
ctdb/server/ctdb_logging.c