summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-09-07 17:14:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-09-07 17:14:29 +0000
commit20af776f62f528912c99c3d6cd02373f9a6d361e (patch)
treebf8f1fe1886d8ca3cf4130a9add3db076d7bec34 /term
parent270ba6ed9ba03f213d46660e528911fb595088ca (diff)
(trivfs_S_io_write): Minor fix.
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;