James Laird
82518dc334
whitespace cleanups
2013-10-22 10:44:40 +11:00
James Laird
fd14f2ef7b
daemon, shairport: POSIX compatibility fix
2013-06-21 19:42:00 +10:00
Paul Lietar and James Laird
e9f5e8a078
Do not print daemon's pid after forking if a pidfile is used.
2013-06-21 11:58:29 +10:00
Paul Lietar and James 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 Lietar and James Laird
dbe13e399a
Remove pid file when exiting.
2013-06-20 17:02:56 +10:00
Paul Lietar and James Laird
c404660122
Move daemon related code to a separate file.
2013-06-20 17:02:56 +10:00