Do not lock the pgrpsess_lock exclusively across ttywait().
Spotted by: David Wolfskill <david@catwhisker.org> Investigated by: rwatson
This commit is contained in:
parent
a16c1fce78
commit
b9e49bfcc9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user