From 4b50a369c8b5c4357e4b70feb50f542d5cc902ad Mon Sep 17 00:00:00 2001 From: fredb Date: Thu, 17 Jul 2008 21:28:43 +0000 Subject: [PATCH] SIGPIPE is a unix thing --- src/Main/bootstrap.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index f240eb3d6..88d6dfb8e 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -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; } -- 2.39.5