diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-09-07 17:14:29 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-09-07 17:14:29 +0000 |
commit | 20af776f62f528912c99c3d6cd02373f9a6d361e (patch) | |
tree | bf8f1fe1886d8ca3cf4130a9add3db076d7bec34 /term | |
parent | 270ba6ed9ba03f213d46660e528911fb595088ca (diff) |
(trivfs_S_io_write): Minor fix.
Diffstat (limited to 'term')
-rw-r--r-- | term/users.c | 3 |
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; |