diff options
Diffstat (limited to 'src/dillo.cc')
-rw-r--r-- | src/dillo.cc | 4 |
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(); |