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:
parent
030035a32a
commit
f79dbc23bf
1 changed files with 2 additions and 3 deletions
|
@ -27,12 +27,10 @@
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__i386__)
|
#if defined(__linux__) && defined(__i386__)
|
||||||
# include <fpu_control.h>
|
# include <fpu_control.h>
|
||||||
# include <signal.h>
|
|
||||||
#elif defined(__FreeBSD__)
|
|
||||||
# include <signal.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -172,6 +170,7 @@ 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
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
#if defined(sgi)
|
#if defined(sgi)
|
||||||
flush_fpe();
|
flush_fpe();
|
||||||
|
|
Loading…
Add table
Reference in a new issue