lib/drmtest: handle SIGBUS in the exit handlers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Sep 2013 10:11:54 +0000 (12:11 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Sep 2013 10:11:54 +0000 (12:11 +0200)
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>
lib/drmtest.c

index f31091a..969854c 100644 (file)
@@ -1700,7 +1700,7 @@ static igt_exit_handler_t exit_handler_fn[MAX_EXIT_HANDLERS];
 static bool exit_handler_disabled;
 static sigset_t saved_sig_mask;
 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)
 {