summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-01 22:57:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-01 22:57:28 +0000
commit5ba84de2bbc67e73907e5ce2fb9f0dd1b7a65ac7 (patch)
tree96423abfffa7b4de6e58c4be269468e76c5fabb5
parent9a4a6d2a0a27b10fd84ab9de1b6e81a13bd29c99 (diff)
(trivfs_S_interrupt_operation):
-rw-r--r--term/users.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c
index a3c79dcf..600e6962 100644
--- a/term/users.c
+++ b/term/users.c
@@ -876,11 +876,13 @@ S_tioctl_tiocdrain (io_t port)
if (!(cred->po->openmodes & O_WRITE))
{
mutex_unlock (&global_lock);
+ ports_port_deref (cred);
return EBADF;
}
err = drain_output ();
mutex_unlock (&global_lock);
+ ports_port_deref (cred);
return err;
}
@@ -916,7 +918,6 @@ S_tioctl_tiocswinsz (io_t port,
}
mutex_unlock (&global_lock);
-
return err;
}