summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-06-14 21:07:46 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-06-14 21:08:28 +0200
commit02bedadab6505c10dda52c716e797d1065a57a7b (patch)
treeec9ff35ad518131d290d2df3ebfef1f7acc13d1d /src
parentba122b9354e1556171ec3c10706c73ff19a7b347 (diff)
downloadpianobar-windows-02bedadab6505c10dda52c716e797d1065a57a7b.tar.gz
pianobar-windows-02bedadab6505c10dda52c716e797d1065a57a7b.tar.bz2
pianobar-windows-02bedadab6505c10dda52c716e797d1065a57a7b.zip
Ignore SIGPIPE
We have all the error handling in place, no need to kill the program. See #274.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
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 <assert.h>
#include <stdbool.h>
#include <limits.h>
+#include <signal.h>
/* pandora.com library */
#include <piano.h>
@@ -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 ();