1
0
Fork 0

ignore SIGPIPE. If we pipe our output to another application, let's say

to kst, and kst is closed, this does *not* mean that we want FlightGear
to "abort".
This commit is contained in:
mfranz 2008-07-15 16:55:23 +00:00
parent 030035a32a
commit f79dbc23bf

View file

@ -27,12 +27,10 @@
#if defined(__linux__) && defined(__i386__)
# include <fpu_control.h>
# include <signal.h>
#elif defined(__FreeBSD__)
# include <signal.h>
#endif
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
@ -172,6 +170,7 @@ int main ( int argc, char **argv ) {
// Ignore floating-point exceptions on FreeBSD
signal(SIGFPE, SIG_IGN);
#endif
signal(SIGPIPE, SIG_IGN);
#if defined(sgi)
flush_fpe();