[hal] Raise SIGKILL instead of calling abort() (#6427)

We don't need to generate a core dump here if core dumps are enabled.
This commit is contained in:
Peter Johnson
2024-03-10 20:32:54 -07:00
committed by GitHub
parent fbd239d15e
commit 3d9152a461

View File

@@ -6,8 +6,11 @@
#include <jni.h>
#ifdef __FRC_ROBORIO__
#include <signal.h>
#endif
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <fmt/format.h>
@@ -93,7 +96,7 @@ Java_edu_wpi_first_hal_HAL_terminate
(JNIEnv*, jclass)
{
#ifdef __FRC_ROBORIO__
std::abort();
::raise(SIGILL);
#endif
}