From 02bedadab6505c10dda52c716e797d1065a57a7b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 14 Jun 2012 21:07:46 +0200 Subject: Ignore SIGPIPE We have all the error handling in place, no need to kill the program. See #274. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 2e957dd..7613894 100644 --- a/src/main.c +++ b/src/main.c @@ -45,6 +45,7 @@ THE SOFTWARE. #include #include #include +#include /* pandora.com library */ #include @@ -337,6 +338,9 @@ int main (int argc, char **argv) { BarTermSetEcho (0); BarTermSetBuffer (0); + /* signals */ + signal (SIGPIPE, SIG_IGN); + /* init some things */ ao_initialize (); gnutls_global_init (); -- cgit v1.2.3