lkml.org 
[lkml]   [2002]   [Dec]   [9]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
/
DateMon, 9 Dec 2002 10:27:04 -0200 (BRST)
FromRik van Riel <>
SubjectRe: [TRIVIAL] Re: setrlimit incorrectly allows hard limits to exceed soft limits
Digg This
On Mon, 9 Dec 2002, Peter Chubb wrote:

Rik> Wouldn't it be better to simply take the soft limit down to Rik> min(new_rlim.rlim_cur, new_rlim.rlim_max) ?
Single unix spec says to return EINVAL in this case.
[EINVAL]
An invalid resource was specified; or in a setrlimit() call, the new rlim_cur exceeds the new rlim_max.

So how about "the old rlim_cur exceeds the new rlim_max" ? ;)
Rik
-- 
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/		http://guru.conectiva.com/
Current spamtrap:  <a href=mailto:"october@surriel.com">october@surriel.com</a>
\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2005-03-22 12:31    [W:1.178 / U:0.000 seconds]
©2003-2005 Jasper Spaans