Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 1997 10:00:02 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: kern/2535: filesize-cur resource limit reset to "infinity"
Message-ID:  <199701201800.KAA14617@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/2535; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: davidn@unique.usn.blaze.net.au, FreeBSD-gnats-submit@FreeBSD.org
Cc:  Subject: Re: kern/2535: filesize-cur resource limit reset to "infinity"
Date: Tue, 21 Jan 1997 04:52:38 +1100

 >>Fix:
 >	
 >	Remove the following line in sys/kern/kern_exit.c? I have no
 >	idea why this line is even there in the first place. :-)
 >	Can anyone explain why?
 >
 >--- kern_exit.c.orig	Wed Jan 15 14:55:26 1997
 >+++ kern_exit.c	Tue Jan 21 01:51:26 1997
 >@@ -222,7 +222,7 @@
 > 		sp->s_leader = NULL;
 > 	}
 > 	fixjobc(p, p->p_pgrp, 0);
 >-	p->p_rlimit[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
 >+     /* p->p_rlimit[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; */
 
 rlimits are copy on write (implemented in software; grep for p_limit
 in kern_fork.c and kern_resource.c).  The above code neglects to
 duplicate the struct before writing to it.
 
 Bruce



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