From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 600 invoked from network); 17 Apr 2007 10:55:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Apr 2007 10:55:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98154 invoked from network); 17 Apr 2007 10:55:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 10:55:40 -0000 Received: (qmail 24616 invoked by alias); 17 Apr 2007 10:55:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23287 Received: (qmail 24606 invoked from network); 17 Apr 2007 10:55:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2007 10:55:33 -0000 Received: (qmail 97419 invoked from network); 17 Apr 2007 10:55:33 -0000 Received: from flpvm09.prodigy.net (207.115.20.39) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 10:55:29 -0000 X-ORBL: [76.211.249.141] Received: from [76.211.249.141] (adsl-76-211-249-141.dsl.pltn13.sbcglobal.net [76.211.249.141]) by flpvm09.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id l3HAt4OR022848 for ; Tue, 17 Apr 2007 03:55:05 -0700 Message-ID: <4624A79F.1020107@cowan.name> Date: Tue, 17 Apr 2007 03:55:27 -0700 From: Micah Cowan User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: zsh-workers@sunsite.dk Subject: Re: Bug in ulimit ? References: <46248CC2.4010901@cs.huji.ac.il> <462493C0.20700@cowan.name> <20070417094244.GA4955@sc.homeunix.net> <46249BC7.8070200@cowan.name> <20070417104303.GB4955@sc.homeunix.net> In-Reply-To: <20070417104303.GB4955@sc.homeunix.net> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Stephane Chazelas wrote: > 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). > Originally responded to this directly, but then realized that the veracity of this statement is pertinent to the next message I sent as well, so it's worth addressing on-list, in case it isn't clear to others. ulimit -t doesn't set the limit _at_all_; it prints it (hence the "0", above). -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/