]> git.mxchange.org Git - flightgear.git/commitdiff
SIGPIPE is a unix thing
authorfredb <fredb>
Thu, 17 Jul 2008 21:28:43 +0000 (21:28 +0000)
committerfredb <fredb>
Thu, 17 Jul 2008 21:28:43 +0000 (21:28 +0000)
src/Main/bootstrap.cxx

index f240eb3d6a02c9a42488c4eec33059a2e77d9ef3..88d6dfb8e05c5e7055f6e12cc57cbb21e96fa90f 100644 (file)
@@ -170,7 +170,9 @@ int main ( int argc, char **argv ) {
     // Ignore floating-point exceptions on FreeBSD
     signal(SIGFPE, SIG_IGN);
 #endif
+#ifndef _MSC_VER
     signal(SIGPIPE, SIG_IGN);
+#endif
 
 #if defined(sgi)
     flush_fpe();
@@ -231,11 +233,11 @@ int main ( int argc, char **argv ) {
     } catch (const char *s) {
         cerr << "Fatal error: " << s << endl;
 
-    } catch (...) {
+/*    } catch (...) {
         cerr << "Unknown exception in the main loop. Aborting..." << endl;
         if (errno)
             perror("Possible cause");
-    }
+*/    }
 
     return 0;
 }