From b9e49bfcc91fc2e10b17f9bec70d4d4cfb27ad51 Mon Sep 17 00:00:00 2001 From: tanimura Date: Mon, 11 Mar 2002 07:51:08 +0000 Subject: Do not lock the pgrpsess_lock exclusively across ttywait(). Spotted by: David Wolfskill Investigated by: rwatson --- sys/kern/kern_exit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/kern_exit.c') diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 37d2ab1..be845fc 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -251,7 +251,9 @@ exit1(td, rv) PGRP_UNLOCK(sp->s_ttyp->t_pgrp); } /* XXX tp should be locked. */ + PGRPSESS_XUNLOCK(); (void) ttywait(tp); + PGRPSESS_XLOCK(); /* * The tty could have been revoked * if we blocked. -- cgit v1.1