mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Make sure that the crashlog actually gets written.
This commit is contained in:
parent
1dd083cd7d
commit
0fe5d4f610
1 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue