SITL: abort on floating point error

this creates a core file
This commit is contained in:
Andrew Tridgell 2014-11-13 17:27:20 +11:00
parent e49cd68b83
commit f04f8e226d

View File

@ -80,7 +80,7 @@ bool SITL_State::new_rc_input;
void SITL_State::_sig_fpe(int signum) void SITL_State::_sig_fpe(int signum)
{ {
fprintf(stderr, "ERROR: Floating point exception\n"); fprintf(stderr, "ERROR: Floating point exception\n");
exit(1); abort();
} }
void SITL_State::_usage(void) void SITL_State::_usage(void)