From b71a84c94992821c4bd70f80a2fdb3d4e9a39a62 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 5 Jan 2010 06:05:33 +0100 Subject: [PATCH] file writer pre_select() fixes. --- file_write.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/file_write.c b/file_write.c index a9635ca2..8baaa842 100644 --- a/file_write.c +++ b/file_write.c @@ -97,11 +97,10 @@ static void file_write_pre_select_btr(struct sched *s, struct task *t) t->error = 0; pfwd->check_fd = 0; ret = btr_node_status(wn->btrn, wn->min_iqs); - if (ret >= 0) { + if (ret > 0) { para_fd_set(pfwd->fd, &s->wfds, &s->max_fileno); pfwd->check_fd = 1; - } - if (ret != 0) { + } else if (ret < 0) { s->timeout.tv_sec = 0; s->timeout.tv_usec = 1; } -- 2.39.5