aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 16:28:13 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 16:28:13 +0100
commit6c0f5fc6125a478fd50074880ed7fcac9fd9063e (patch)
tree0249671839bc1ccf0211838fab4f9176d59aa026 /src/main.c
parent671480814c643cd094978e4a0db76687fbddec4f (diff)
downloadmpd-6c0f5fc6125a478fd50074880ed7fcac9fd9063e.tar.gz
mpd-6c0f5fc6125a478fd50074880ed7fcac9fd9063e.tar.xz
mpd-6c0f5fc6125a478fd50074880ed7fcac9fd9063e.zip
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.
Diffstat (limited to '')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c840240a3..580f4bf8b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -186,6 +186,8 @@ int main(int argc, char *argv[])
clock_t start;
GTimer *save_state_timer;
+ daemonize_close_stdin();
+
#ifdef HAVE_LOCALE
/* initialize locale */
setlocale(LC_CTYPE,"");