Commit Graph
4 Commits
Author SHA1 Message Date
Paul LietarandJames Laird aef689c07c In daemon mode, send error messages to parent to write them on stderr.
This allows to get a better error message than "Spawning the daemon failed."
when initialization fails.

The error message is sent through the pipe. When init is OK, just send
a null byte.
2013-06-21 11:54:13 +10:00
James Laird d845e92eae Tiny cleanup for merge 2013-06-20 17:09:13 +10:00
Paul LietarandJames Laird dbe13e399a Remove pid file when exiting. 2013-06-20 17:02:56 +10:00
Paul LietarandJames Laird c404660122 Move daemon related code to a separate file. 2013-06-20 17:02:56 +10:00