Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: setrlimit(2) can set stack segement hard limit lower than soft limit ?
On Tue, Jul 12, 2016 at 03:25:20PM +0000, Christos Zoulas wrote:
> In article <20160712095447.GA27920%issan.sis.pasteur.fr@localhost>,
> Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
[...]
> >Juste encountered a small case where setting stack segement limits
> >made the hard limit smaller than the soft one, which seems problematic
> >to me. Soft limit should never be larger than hard limit.
[...]
> >Do we need to call round_page() on limp->rlim_max too, or should we
> >only raise it to limp->rlim_cur if needed ?
>
> I think we should call round_page to it too...
Committed. Thanks.
--
Nicolas Joly
Cluster & Computing Group
Biology IT Center
Institut Pasteur, Paris.
Home |
Main Index |
Thread Index |
Old Index