summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2002-03-02 12:42:24 +0000
committertanimura <tanimura@FreeBSD.org>2002-03-02 12:42:24 +0000
commitaf34f116bc52bfaa9cd07915847be4f81f91c2a4 (patch)
treed36ebe908ecc33ea638c4e19012e31d78285633f /sys/kern/tty_pty.c
parent3dccea70aff18dfe9a7c2002330318c88a3e84d8 (diff)
downloadFreeBSD-src-af34f116bc52bfaa9cd07915847be4f81f91c2a4.zip
FreeBSD-src-af34f116bc52bfaa9cd07915847be4f81f91c2a4.tar.gz
Fix lock leakage and late unlock.
Submitted by: bde
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 1ab60bd..7271772 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -245,6 +245,7 @@ again:
SIGISMEMBER(p->p_sigmask, SIGTTIN) ||
p->p_pgrp->pg_jobc == 0 || p->p_flag & P_PPWAIT) {
PROC_UNLOCK(p);
+ PGRPSESS_SUNLOCK();
return (EIO);
}
PROC_UNLOCK(p);
OpenPOWER on IntegriCloud