kernel - limit allproc_scan() to snapshot
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Oct 2011 18:15:47 +0000 (11:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Oct 2011 18:15:47 +0000 (11:15 -0700)
commitc5d9d57560d05fe0416a2a5c0f983a88b55a62c1
treeeb6a6c2dee8c28a60a9f5e753178fbf4fa64ac2a
parent8c2bce6000adc4c0de363231dc39a05aa310c3bd
kernel - limit allproc_scan() to snapshot

* Limit the allproc_scan() to (roughly) a snapshot of nprocs processes.
  If we don't do this it is possible for the scan to race fork/exec'ing
  programs and essentially run forever.
sys/kern/kern_proc.c