Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 11:34:50 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Wes Peters <wes@softweyr.com>
Cc:        freebsd-arch@freebsd.org, Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject:   Re: Patch to protect process from pageout killing
Message-ID:  <XFMail.20030325113450.jhb@FreeBSD.org>
In-Reply-To: <200303241805.38175.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 25-Mar-2003 Wes Peters wrote:
> On Monday 24 March 2003 08:36, Poul-Henning Kamp wrote:
>> Also, doesn't this result in the flag being inerited with fork() and
>> thereby negating the effect you are seeking for squid ?
> 
> I looked through all the places in kern_fork.c where p2->p_flag gets set 
> and didn't see anything that looked like it would inherit P_PROTECTED 
> from p1->p_flag.  Did I miss something?  I'm obviously a bit of a 
> neophyte in this part of the kernel.

rlimit's are inherited.  However, due to a "feature" bug in your patch,
the P_PROTECTED flag doesn't get turned on when the rlimit is inherited
in fork1().

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




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