From 20af776f62f528912c99c3d6cd02373f9a6d361e Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 7 Sep 1995 17:14:29 +0000 Subject: (trivfs_S_io_write): Minor fix. --- term/users.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term') diff --git a/term/users.c b/term/users.c index b61a98e0..ee9cac1d 100644 --- a/term/users.c +++ b/term/users.c @@ -395,7 +395,8 @@ trivfs_S_io_write (struct trivfs_protid *cred, while (!qavail (outputq) && !cancel) { start_output (); - cancel = hurd_condition_wait (outputq->wait, &global_lock); + if (!qavail (outputq)) + cancel = hurd_condition_wait (outputq->wait, &global_lock); } if (cancel) break; -- cgit v1.2.3