git: kernel - limit allproc_scan() to snapshot

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 26 11:17:38 PDT 2011


commit c5d9d57560d05fe0416a2a5c0f983a88b55a62c1
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 26 11:15:47 2011 -0700

    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.

Summary of changes:
 sys/kern/kern_proc.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5d9d57560d05fe0416a2a5c0f983a88b55a62c1


-- 
DragonFly BSD source repository





More information about the Commits mailing list