]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Lock proctree_lock instead of pgrpsess_lock.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 16 Apr 2002 17:09:22 +0000 (17:09 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 16 Apr 2002 17:09:22 +0000 (17:09 +0000)
commit596325f15455198a20231d34cbcb59089dcdf353
tree0f54ccd7b3f0f7afd39d3813614ad4daa4b3e70b
parentc8b1829d8e2dc7747ef6ce85edabd65c73ea4364
- Lock proctree_lock instead of pgrpsess_lock.
- Use temporary variables to hold a pointer to a pgrp while we dink with it
  while not holding either the associated proc lock or proctree_lock.  It
  is in theory possible that p->p_pgrp could change out from under us.
sys/kern/tty.c
sys/kern/tty_pty.c