diff options
author | jcid <devnull@localhost> | 2008-04-30 21:05:36 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-04-30 21:05:36 +0200 |
commit | 4f7e8835fc13ac9f0abb02d691d77f62e1af4a35 (patch) | |
tree | 3c63b27df75324a4f3c629190738d7b9b851464f | |
parent | 457d72a602fd37c11b34519f2c88f49a4ce54bb1 (diff) |
- Restored the ignore SIGPIPE directive.
-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(); |