Do not lock the pgrpsess_lock exclusively across ttywait().

Spotted by:		David Wolfskill <david@catwhisker.org>
Investigated by:	rwatson
This commit is contained in:
tanimura 2002-03-11 07:51:08 +00:00
parent a16c1fce78
commit b9e49bfcc9

View File

@ -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.