From 0e06db4c6fa5ffd7c5861bc147a2badd5964aaf4 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 29 Aug 1996 21:44:27 +0000 Subject: *** empty log message *** --- term/users.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'term/users.c') diff --git a/term/users.c b/term/users.c index cf89fee5..9396dd5f 100644 --- a/term/users.c +++ b/term/users.c @@ -795,7 +795,10 @@ trivfs_S_io_readable (struct trivfs_protid *cred, mutex_lock (&global_lock); if ((cred->po->openmodes & O_READ) == 0) - return EBADF; + { + mutex_unlock (&global_lock); + return EBADF; + } *amt = qsize (inputq); if (remote_input_mode && *amt) --*amt; -- cgit v1.2.3