diff options
author | tron <tron@openttd.org> | 2005-03-15 14:23:00 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-15 14:23:00 +0000 |
commit | 452c7c206750284598577cc83b3b1f6ab3f0bc3b (patch) | |
tree | 472dfe1b4b8c5d122e8ed785fc5a8bdcb9003127 /unix.c | |
parent | 0cb2ba49ebe701c884c40bf5c50193776e50ef9b (diff) | |
download | openttd-452c7c206750284598577cc83b3b1f6ab3f0bc3b.tar.xz |
(svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK)
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |