summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-rw-r--r--term/users.c3
1 files changed, 2 insertions, 1 deletions
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;