From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88 invoked from network); 17 Apr 2007 10:43:39 -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.4 required=5.0 tests=AWL,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:43:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78616 invoked from network); 17 Apr 2007 10:43:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 10:43:33 -0000 Received: (qmail 21302 invoked by alias); 17 Apr 2007 10:43:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23285 Received: (qmail 21292 invoked from network); 17 Apr 2007 10:43:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2007 10:43:29 -0000 Received: (qmail 78276 invoked from network); 17 Apr 2007 10:43:29 -0000 Received: from smtpout0137.sc1.he.tucows.com (HELO n068.sc1.he.tucows.com) (64.97.136.137) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 10:43:26 -0000 Received: from sc.homeunix.net (82.26.163.82) by n068.sc1.he.tucows.com (7.2.069.1) id 4622D7800000B7F6; Tue, 17 Apr 2007 10:43:09 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.63) (envelope-from ) id 1Hdl9L-0003yd-TI; Tue, 17 Apr 2007 11:43:03 +0100 Date: Tue, 17 Apr 2007 11:43:03 +0100 From: Stephane Chazelas To: Micah Cowan Cc: davidpeer@cs.huji.ac.il, zsh-workers@sunsite.dk Subject: Re: Bug in ulimit ? Message-ID: <20070417104303.GB4955@sc.homeunix.net> Mail-Followup-To: Micah Cowan , davidpeer@cs.huji.ac.il, zsh-workers@sunsite.dk References: <46248CC2.4010901@cs.huji.ac.il> <462493C0.20700@cowan.name> <20070417094244.GA4955@sc.homeunix.net> <46249BC7.8070200@cowan.name> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <46249BC7.8070200@cowan.name> User-Agent: Mutt/1.5.6i 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