Max Kellermann
|
9c93249412
|
daemon: pass "detach" flag to daemonize()
This way, we don't have to pass the full "Options" object to
daemonize().
|
2009-01-18 18:29:30 +01:00 |
|
Max Kellermann
|
bfcaecabbd
|
daemon: added daemonize_init(), daemonize_finish()
The constructor/destructor functions parse and free the configuration
properly. This way, we don't have to load the pid file path more than
once.
|
2009-01-18 18:29:27 +01:00 |
|
Max Kellermann
|
90b34f8e6f
|
main: moved code to daemon.c
Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to
daemon.c. These are daemonization functions.
|
2009-01-18 17:15:34 +01:00 |
|
Max Kellermann
|
6c0f5fc612
|
listen: moved redirect_stdin() to daemon.c
redirect_stdin() is a daemonization function, and disconnecting from
the standard input is always a good idea for MPD.
|
2008-12-30 16:28:13 +01:00 |
|
Max Kellermann
|
671480814c
|
main: moved daemonize() to daemon.c
|
2008-12-30 16:28:07 +01:00 |
|