From 6c0f5fc6125a478fd50074880ed7fcac9fd9063e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Dec 2008 16:28:13 +0100 Subject: 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. --- src/daemon.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/daemon.h') diff --git a/src/daemon.h b/src/daemon.h index da83b85a8..f2ea58c5f 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -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); -- cgit v1.2.3