]> git.mxchange.org Git - flightgear.git/commitdiff
ignore SIGPIPE. If we pipe our output to another application, let's say
authormfranz <mfranz>
Tue, 15 Jul 2008 16:55:23 +0000 (16:55 +0000)
committermfranz <mfranz>
Tue, 15 Jul 2008 16:55:23 +0000 (16:55 +0000)
to kst, and kst is closed, this does *not* mean that we want FlightGear
to "abort".

src/Main/bootstrap.cxx

index 8322b598acd6e82ac9f6b1d8eaa52e59362557a2..f240eb3d6a02c9a42488c4eec33059a2e77d9ef3 100644 (file)
 
 #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();