Date: Wed, 22 Jan 1997 02:58:56 +1100 From: Bruce Evans <bde@zeta.org.au> To: davidn@unique.usn.blaze.net.au Cc: freebsd-bugs@freefall.freebsd.org Subject: Re: kern/2535: filesize-cur resource limit reset to "infinity" Message-ID: <199701211558.CAA10696@godzilla.zeta.org.au>
index | next in thread | raw e-mail
>> Is this patch the correct fix?
>>
>> --- kern_exit.c.orig Wed Jan 15 14:55:26 1997
>> +++ kern_exit.c Tue Jan 21 12:48:57 1997
>> @@ -222,6 +222,10 @@
>> sp->s_leader = NULL;
>> }
>> fixjobc(p, p->p_pgrp, 0);
>> + if (p->p_limit->p_refcnt > 1 && p->p_limit->p_lflags & PL_SHAREMOD) {
>
>Whoops. That should of course be:
>
>> + if (p->p_limit->p_refcnt > 1 && (p->p_limit->p_lflags & PL_SHAREMOD) == 0) {
>
Except it is has too many columns. See kern_resource.c for correct formatting.
BTW, PL_SHAREMOD seems to be never set. It is to support threads, but the
kernel doesn't have any real support for threads.
Bruce
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701211558.CAA10696>
