diff options
Diffstat (limited to '')
-rw-r--r-- | plugin_mpd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin_mpd.c b/plugin_mpd.c index e6a9417..bdf22ed 100644 --- a/plugin_mpd.c +++ b/plugin_mpd.c @@ -77,6 +77,7 @@ TODO: #include <stdlib.h> #include <string.h> #include <ctype.h> +#include <signal.h> #include "debug.h" #include "plugin.h" @@ -577,7 +578,9 @@ int plugin_init_mpd(void) debug("[MPD] configured!"); else debug("[MPD] error, NOT configured!"); - + + //when mpd dies, do NOT exit application, ignore it! + signal(SIGPIPE, SIG_IGN); gettimeofday(×tamp, NULL); AddFunction("mpd::artist", 0, getArtist); |