Make sure that the crashlog actually gets written.

This commit is contained in:
svdijk 2012-11-16 21:16:14 +01:00 committed by Yamagi Burmeister
parent 1dd083cd7d
commit 0fe5d4f610

View file

@ -75,7 +75,6 @@ printBacktrace(int sig)
printf("Signal: %i\n", sig);
printf("\nBacktrace:\n");
printf(" Not available on this plattform.\n\n");
}
#endif
@ -111,6 +110,9 @@ signalhandler(int sig)
signal(SIGFPE, SIG_DFL);
signal(SIGABRT, SIG_DFL);
/* make sure this is written */
fflush(stdout);
/* pass signal to the os */
raise(sig);
}