summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-15 14:23:00 +0000
committertron <tron@openttd.org>2005-03-15 14:23:00 +0000
commitcf43c7a0e69dcad5cfa1a88bed5c5c1743d42ca4 (patch)
tree472dfe1b4b8c5d122e8ed785fc5a8bdcb9003127 /unix.c
parent3763ec7652c8421ad18cb59ec88a0bd448e2ab23 (diff)
downloadopenttd-cf43c7a0e69dcad5cfa1a88bed5c5c1743d42ca4.tar.xz
(svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK)
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index d24255b8b..0da9fa5da 100644
--- a/unix.c
+++ b/unix.c
@@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <time.h>
#include <pwd.h>
+#include <signal.h>
#if defined(__linux__)
#include <sys/statvfs.h>
@@ -464,6 +465,7 @@ int CDECL main(int argc, char* argv[])
_random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
+ signal(SIGPIPE, SIG_IGN);
return ttd_main(argc, argv);
}