changeset 200:a53374d75277

- Restored the ignore SIGPIPE directive.
author jcid
date Wed, 30 Apr 2008 21:05:36 +0200
parents 7f033b2328e2
children 5f66eb0ae1f8
files src/dillo.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dillo.cc	Wed Apr 30 18:36:09 2008 +0200
+++ b/src/dillo.cc	Wed Apr 30 21:05:36 2008 +0200
@@ -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 @@
 {
    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();