diff --git a/main.c b/main.c index 461f065..108675d 100644 --- a/main.c +++ b/main.c @@ -5,6 +5,7 @@ #include #include #include +#include pthread_cond_t isr_cond = PTHREAD_COND_INITIALIZER; pthread_mutex_t isr_mtx = PTHREAD_MUTEX_INITIALIZER; @@ -36,6 +37,7 @@ { struct mpd_connection *conn; unsigned int tries = 0; + signal(SIGPIPE, SIG_IGN); // don't die on connection issues conn = mpd_connection_new("/run/mpd.socket", 0, 0); while ((mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) && (tries < 60)) { mpd_connection_free(conn);