From: Jens Axboe Date: Mon, 21 Jun 2010 12:36:11 +0000 (+0200) Subject: Cleanup up SIGILL for crc32c-intel X-Git-Tag: fio-1.41.3~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=904dc32cfb31f63a2a50e42af583f7e61ccf4968 Cleanup up SIGILL for crc32c-intel Signed-off-by: Jens Axboe --- 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));