Max Kellermann
|
4d472c265e
|
conf: no CamelCase, part I
Renamed functions, types, variables.
|
2009-01-17 20:23:27 +01:00 |
|
Max Kellermann
|
18cb34700e
|
daemon: don't check the setsid() return value
There is only one valid error condition for setsid(): when the current
process is already the process group leader. This is non-critical.
|
2009-01-13 21:45:44 +01:00 |
|
Max Kellermann
|
2532129755
|
daemon: don't fork twice to daemonize
To detach from the parent process, fork once and make the old process
exit. No need to do that twice.
|
2009-01-13 21:44:42 +01:00 |
|
Max Kellermann
|
cdf1eaeb2c
|
daemon: simplified daemonize_close_stdin()
Don't bother to call fstat() or isatty() on STDIN_FILENO.
|
2008-12-30 16:28:18 +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 |
|