diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-06-14 21:07:46 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-06-14 21:08:28 +0200 |
commit | 02bedadab6505c10dda52c716e797d1065a57a7b (patch) | |
tree | ec9ff35ad518131d290d2df3ebfef1f7acc13d1d | |
parent | ba122b9354e1556171ec3c10706c73ff19a7b347 (diff) | |
download | pianobar-02bedadab6505c10dda52c716e797d1065a57a7b.tar.gz pianobar-02bedadab6505c10dda52c716e797d1065a57a7b.tar.bz2 pianobar-02bedadab6505c10dda52c716e797d1065a57a7b.zip |
Ignore SIGPIPE
We have all the error handling in place, no need to kill the program.
See #274.
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 (); |