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.
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
|
||||
#include "cmdline.h"
|
||||
|
||||
/**
|
||||
* Close stdin (fd 0) and re-open it as /dev/null.
|
||||
*/
|
||||
void
|
||||
daemonize_close_stdin(void);
|
||||
|
||||
void
|
||||
daemonize(Options *options);
|
||||
|
||||
|
Reference in New Issue
Block a user