From 904dc32cfb31f63a2a50e42af583f7e61ccf4968 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 21 Jun 2010 14:36:11 +0200 Subject: [PATCH] Cleanup up SIGILL for crc32c-intel Signed-off-by: Jens Axboe --- fio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fio.c b/fio.c index ae62d233..5f29e28b 100644 --- a/fio.c +++ b/fio.c @@ -147,10 +147,8 @@ static void sig_ill(int fio_unused sig) if (!threads) return; - log_err("fio: illegal instruction. your cpu does not support " - "the sse4.2 instruction for crc32c\n"); + log_err("fio: system does not support the sse4.2 instruction for crc32c-intel.\nUse crc32c instead."); terminate_threads(TERMINATE_ALL); - exit(4); } static void set_sig_handlers(void) @@ -169,7 +167,7 @@ static void set_sig_handlers(void) memset(&act, 0, sizeof(act)); act.sa_handler = sig_ill; - act.sa_flags = SA_RESTART; + act.sa_flags = SA_RESETHAND; sigaction(SIGILL, &act, NULL); memset(&act, 0, sizeof(act)); -- 2.25.1