On 11/08/2012 02:08 PM, Stuart Henderson wrote:
> Oh talking of RLIMIT reminds me...can someone who knows this area take
> a look at http://thread.gmane.org/gmane.os.aeriebsd.general/100 please?
> 

To me the fix looks reasonable. Limiting the stack size below
the current usage shouldn't be allowed. And returning EINVAL is the
right error code according to SUS ("The limit specified cannot be
lowered because current usage is already higher than the limit.").

However, the EINVAL error should then be added to the man page
(lib/libc/sys/getrlimit.2). That's missing in Mickey's patch.

Gerhard

Reply via email to