From 73170f19408559ed7e318f93b21e5cbbf13725bd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 17 Feb 2007 06:20:19 +0100 Subject: [PATCH] [PATCH] Don't check status if ret < 0 Signed-off-by: Jens Axboe --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 774b160c..78dca9a0 100644 --- a/fio.c +++ b/fio.c @@ -846,7 +846,7 @@ static void reap_threads(int *nr_running, int *t_rate, int *m_rate) ret = waitpid(td->pid, &status, 0); if (ret < 0) perror("waitpid"); - if (WIFEXITED(status) && WEXITSTATUS(status)) { + else if (WIFEXITED(status) && WEXITSTATUS(status)) { if (!exit_value) exit_value++; } -- 2.25.1