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:
Daniel Vetter 2013-09-11 12:11:54 +02:00
parent 14dd7cb8aa
commit bbc820302b

View File

@ -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)
{ {