cvs commit: src/sys/kern kern_proc.c

Don Lewis truckman at
Tue Oct 4 22:30:25 PDT 2005

truckman    2005-10-05 05:30:24 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/kern             kern_proc.c 
  MFC kern_proc.c - fix locking in sysctl_kern_proc()
  Original commit message:
    FreeBSD src repository
    Modified files:
      sys/kern             kern_proc.c
    Always wire the sysctl output buffer in sysctl_kern_proc() before
    calling sysctl_out_proc().  -- fix from jhb
    Move the code in fill_kinfo_thread() that gathers data from struct proc
    into the new function fill_kinfo_proc_only().
    Change all callers of fill_kinfo_thread() to call both
    fill_kinfo_proc_only() and fill_kinfo() thread.  When gathering
    data from a multi-threaded process, fill_kinfo_proc_only() only needs
    to be called once.
    Grab sched_lock before accessing the process thread list or calling
  PR:             kern/84684
  Approved by:    re (scottl)
  Revision   Changes    Path  +114 -96   src/sys/kern/kern_proc.c

More information about the cvs-src mailing list