daemon: Fix regression with --start introduced with the double fork in 8e94f653
authorColin Guthrie <cguthrie@mandriva.org>
Thu, 24 Mar 2011 21:27:55 +0000 (21:27 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Thu, 24 Mar 2011 21:27:55 +0000 (21:27 +0000)
commitd47a33775b55877b9df42add3346779bba077299
treef45884286a5dd119f6d7d5f1a085a09bd077b819
parenta9c8f904b0c4a03e7bff004c103aa5910f8bea3d
daemon: Fix regression with --start introduced with the double fork in 8e94f653

The previous commit intoduced a double fork which caused a more or less immediate
successful return prior to the hard work of actually starting a daemon.

This patch simply used pipe() to only signal our father when the daemon really
has finished starting.
src/daemon/main.c