summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ();