mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-26 17:26:14 +00:00
lib/drmtest: handle SIGBUS in the exit handlers
Our kernel likes to occasionally kill process with a SIGBUS when this shouldn't ever happen. Hence also handle this signal in the exit handler infrastructure. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
14dd7cb8aa
commit
bbc820302b
@ -1700,7 +1700,7 @@ static igt_exit_handler_t exit_handler_fn[MAX_EXIT_HANDLERS];
|
|||||||
static bool exit_handler_disabled;
|
static bool exit_handler_disabled;
|
||||||
static sigset_t saved_sig_mask;
|
static sigset_t saved_sig_mask;
|
||||||
static const int handled_signals[] =
|
static const int handled_signals[] =
|
||||||
{ SIGINT, SIGHUP, SIGTERM, SIGQUIT, SIGPIPE, SIGABRT, SIGSEGV };
|
{ SIGINT, SIGHUP, SIGTERM, SIGQUIT, SIGPIPE, SIGABRT, SIGSEGV, SIGBUS };
|
||||||
|
|
||||||
static int install_sig_handler(int sig_num, sighandler_t handler)
|
static int install_sig_handler(int sig_num, sighandler_t handler)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user