Fix a race between exit and kinfo_proc. proc->p_pgrp and the related
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 Oct 2007 23:30:31 +0000 (23:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 Oct 2007 23:30:31 +0000 (23:30 +0000)
commitdd416fb09909d3e2dbbfdaee5ec8f62211cae05b
treef5fe3beafe8b0e9b4859ce0a694cb7731212c17c
parent60d2de1f7c1d2439917501ebb09ba4a2a45529e4
Fix a race between exit and kinfo_proc.  proc->p_pgrp and the related
session info can wind up being NULL if kinfo_proc catches the process while
it is trying to exit.

Reported-by: Peter Avalos <pavalos@theshell.com>
sys/kern/kern_kinfo.c