From cf43c7a0e69dcad5cfa1a88bed5c5c1743d42ca4 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 15 Mar 2005 14:23:00 +0000 Subject: [PATCH] (svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK) --- sdl.c | 2 -- unix.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl.c b/sdl.c index c2f432c9d1..6858fdbfdd 100644 --- a/sdl.c +++ b/sdl.c @@ -158,8 +158,6 @@ static const char *SdlOpen(uint32 x) signal(SIGABRT, SdlAbort); signal(SIGSEGV, SdlAbort); signal(SIGFPE, SdlAbort); - - signal(SIGPIPE, SIG_IGN); #endif return NULL; diff --git a/unix.c b/unix.c index d24255b8ba..0da9fa5da0 100644 --- a/unix.c +++ b/unix.c @@ -10,6 +10,7 @@ #include #include #include +#include #if defined(__linux__) #include @@ -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); }