Changeset - r1509:befe4ddbad78
[Not reviewed]
master
0 2 0
tron - 19 years ago 2005-03-15 14:23:00
tron@openttd.org
(svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
sdl.c
Show inline comments
 
@@ -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;
unix.c
Show inline comments
 
@@ -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);
 
}
0 comments (0 inline, 0 general)