From: Jens Axboe Date: Thu, 22 Feb 2007 11:11:26 +0000 (+0100) Subject: Thread waitpid() error check X-Git-Tag: fio-1.12~31 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=50070b5a3b37f013a2b0b968e1b8b34bffff8589 Thread waitpid() error check Signed-off-by: Jens Axboe --- 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);