From 50070b5a3b37f013a2b0b968e1b8b34bffff8589 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 22 Feb 2007 12:11:26 +0100 Subject: [PATCH] Thread waitpid() error check Signed-off-by: Jens Axboe --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 0f72fd92..a394ff8c 100644 --- a/fio.c +++ b/fio.c @@ -844,7 +844,7 @@ static void reap_threads(int *nr_running, int *t_rate, int *m_rate) * check if someone quit or got killed in an unusual way */ ret = waitpid(td->pid, &status, flags); - if (ret < 0) { + if (ret < 0 && !td->use_thread) { if (errno == ECHILD) { log_err("fio: pid=%d disappeared %d\n", td->pid, td->runstate); td_set_runstate(td, TD_REAPED); -- 2.25.1