From 58fcccc68ba83b74ef0955e17c05c78a9f07a2ab Mon Sep 17 00:00:00 2001 From: unK Date: Sat, 18 Oct 2008 16:10:07 +0200 Subject: [PATCH] ignore SIGPIPE --- src/ncmpcpp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index cdf78895..b47f95fb 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include +#include #include #include @@ -333,6 +334,8 @@ int main(int argc, char *argv[]) string info_title; // local variables end + signal(SIGPIPE, SIG_IGN); + while (!main_exit) { if (!Mpd->Connected())