aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dillo.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dillo.cc b/src/dillo.cc
index af45adfc..0865f619 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -22,6 +22,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
+#include <signal.h>
#include <fltk/Window.h>
#include <fltk/run.h>
@@ -82,6 +83,9 @@ int main(int argc, char **argv)
{
srand((uint_t)(time(0) ^ getpid()));
+ // Some OSes exit dillo without this (not GNU/Linux).
+ signal(SIGPIPE, SIG_IGN);
+
// Initialize internal modules
a_Dir_init();
a_Prefs_init();