Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in ulimit ?
- X-seq: zsh-workers 23285
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Micah Cowan <micah@xxxxxxxxxx>
- Subject: Re: Bug in ulimit ?
- Date: Tue, 17 Apr 2007 11:43:03 +0100
- Cc: davidpeer@xxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- In-reply-to: <46249BC7.8070200@xxxxxxxxxx>
- Mail-followup-to: Micah Cowan <micah@xxxxxxxxxx>, davidpeer@xxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <46248CC2.4010901@xxxxxxxxxxxxx> <462493C0.20700@xxxxxxxxxx> <20070417094244.GA4955@xxxxxxxxxxxxxxx> <46249BC7.8070200@xxxxxxxxxx>
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