Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2011 17:12:41 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Edward Tomasz Napierala <trasz@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 188283 for review
Message-ID:  <201101281712.42009.jhb@freebsd.org>
In-Reply-To: <201101282104.p0SL4FJI015044@skunkworks.freebsd.org>
References:  <201101282104.p0SL4FJI015044@skunkworks.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, January 28, 2011 4:04:15 pm Edward Tomasz Napierala wrote:
> http://p4web.freebsd.org/@@188283?ac=10
> 
> Change 188283 by trasz@trasz_victim on 2011/01/28 21:03:18
> 
> 	Prevent one from adding per-process limits for processes marked
> 	as P_SYSTEM, or retrieving resource usage information for these
> 	processes.

You probably don't need the PROC_LOCK just to check this flag.  It is set on 
fork() and that bit never changes, so even if the other bits in p_flag are 
stale, you don't care as that doesn't affect testing for P_SYSTEM.

-- 
John Baldwin



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