Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | daemon: don't check the setsid() return value | Max Kellermann | 2009-01-13 | 1 | -3/+1 |
| | | | | | There is only one valid error condition for setsid(): when the current process is already the process group leader. This is non-critical. | ||||
* | daemon: don't fork twice to daemonize | Max Kellermann | 2009-01-13 | 1 | -8/+0 |
| | | | | | To detach from the parent process, fork once and make the old process exit. No need to do that twice. | ||||
* | daemon: simplified daemonize_close_stdin() | Max Kellermann | 2008-12-30 | 1 | -16/+6 |
| | | | | Don't bother to call fstat() or isatty() on STDIN_FILENO. | ||||
* | listen: moved redirect_stdin() to daemon.c | Max Kellermann | 2008-12-30 | 1 | -0/+26 |
| | | | | | redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD. | ||||
* | main: moved daemonize() to daemon.c | Max Kellermann | 2008-12-30 | 1 | -0/+86 |