SIGPIPE is a unix thing
This commit is contained in:
parent
ba27bab1b2
commit
4b50a369c8
1 changed files with 4 additions and 2 deletions
|
@ -170,7 +170,9 @@ int main ( int argc, char **argv ) {
|
||||||
// Ignore floating-point exceptions on FreeBSD
|
// Ignore floating-point exceptions on FreeBSD
|
||||||
signal(SIGFPE, SIG_IGN);
|
signal(SIGFPE, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef _MSC_VER
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(sgi)
|
#if defined(sgi)
|
||||||
flush_fpe();
|
flush_fpe();
|
||||||
|
@ -231,11 +233,11 @@ int main ( int argc, char **argv ) {
|
||||||
} catch (const char *s) {
|
} catch (const char *s) {
|
||||||
cerr << "Fatal error: " << s << endl;
|
cerr << "Fatal error: " << s << endl;
|
||||||
|
|
||||||
} catch (...) {
|
/* } catch (...) {
|
||||||
cerr << "Unknown exception in the main loop. Aborting..." << endl;
|
cerr << "Unknown exception in the main loop. Aborting..." << endl;
|
||||||
if (errno)
|
if (errno)
|
||||||
perror("Possible cause");
|
perror("Possible cause");
|
||||||
}
|
*/ }
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue