- 18 Jan, 2009 4 commits
-
-
Max Kellermann authored
This causes a segmentation fault...
-
Max Kellermann authored
This way, we don't have to pass the full "Options" object to daemonize().
-
Max Kellermann authored
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.
-
Max Kellermann authored
Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to daemon.c. These are daemonization functions.
-
- 17 Jan, 2009 1 commit
-
-
Max Kellermann authored
Renamed functions, types, variables.
-
- 13 Jan, 2009 2 commits
-
-
Max Kellermann authored
There is only one valid error condition for setsid(): when the current process is already the process group leader. This is non-critical.
-
Max Kellermann authored
To detach from the parent process, fork once and make the old process exit. No need to do that twice.
-
- 30 Dec, 2008 3 commits
-
-
Max Kellermann authored
Don't bother to call fstat() or isatty() on STDIN_FILENO.
-
Max Kellermann authored
redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD.
-
Max Kellermann authored
-