From 6c28f0bb768f30673a7c15d9ab493ed2dfe4d5e3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 26 May 2008 16:38:28 +0200 Subject: [PATCH] Fix out-of-band deref of (potentially) gone threads structure Signed-off-by: Jens Axboe --- fio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fio.c b/fio.c index c17ea3c3..37a425e8 100644 --- a/fio.c +++ b/fio.c @@ -101,6 +101,9 @@ static void terminate_threads(int group_id) static void sig_handler(int sig) { + if (!threads) + return; + switch (sig) { case SIGALRM: update_io_ticks(); -- 2.25.1