Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: setting resource limits
- X-seq: zsh-workers 20044
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: setting resource limits
- Date: Mon, 14 Jun 2004 17:59:55 +0200
- In-reply-to: <200406141521.i5EFLolC019193@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200406141521.i5EFLolC019193@xxxxxxxxxxxxxx>
Peter wrote:
> A much nicer way of doing it is with an explicit option to give the
> number of the limit. This is more consistent with normal ulimit
> behaviour.
Yes, this does look better. Cheers.
It should probably produce an error for a negative number instead of
defaulting to the file size limit. The old code initialises res to -1
twice then checks for it at the end. I'd have thought it could just be
initialised to RLIMIT_FSIZE with the <0 test producing an error.
Is it worth doing the same for the limit and unlimit builtins too?
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author