aboutsummaryrefslogtreecommitdiff
path: root/src/dillo.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-04-30 21:05:36 +0200
committerjcid <devnull@localhost>2008-04-30 21:05:36 +0200
commit4f7e8835fc13ac9f0abb02d691d77f62e1af4a35 (patch)
tree3c63b27df75324a4f3c629190738d7b9b851464f /src/dillo.cc
parent457d72a602fd37c11b34519f2c88f49a4ce54bb1 (diff)
- Restored the ignore SIGPIPE directive.
Diffstat (limited to 'src/dillo.cc')
-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();