Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in ulimit ?



On Tue, Apr 17, 2007 at 03:04:55AM -0700, Micah Cowan wrote:
[...]
> % ulimit -t 0
> % ( ulimit -t; while :; do :; done )
> 0
> << watch the CPU time used climb in top >>
> ^C
[...]
> It therefore appears  that while the manpage is correct for hard limits,
> soft limits of 0 are still treated as unlimited.
[...]

ulimit -t

doesn't set the limit to 0 but to infinity (in effect, to the
hard limit).

It's ulimit -t 0
to set the limit to 0 (well actually, 1 second in that case).

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author