Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 08:14:55 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_proc.c
Message-ID:  <200303121614.h2CGEtUJ099393@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/03/12 08:14:55 PST

  FreeBSD src repository

  Modified files:
    sys/kern             kern_proc.c 
  Log:
  - Avoid dropping the proc lock around a simple permissions check and just
    hold hold it across the check to avoid extra lock operations in the
    common case.
  - Copy in the new args to a temporary pargs structure before we drop the
    reference to the old one.  Thus, if the copyin() fails, the process
    arguments are unchanged rather than being deleted.  Also, p_args is no
    longer NULL during the sysctl operation.
  
  Revision  Changes    Path
  1.174     +16 -18    src/sys/kern/kern_proc.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303121614.h2CGEtUJ099393>