From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9714 invoked from network); 17 Apr 2007 09:33:52 -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 09:33:52 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 6370 invoked from network); 17 Apr 2007 09:33:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 09:33:47 -0000 Received: (qmail 11528 invoked by alias); 17 Apr 2007 09:33:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23282 Received: (qmail 11516 invoked from network); 17 Apr 2007 09:33:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2007 09:33:42 -0000 Received: (qmail 6069 invoked from network); 17 Apr 2007 09:33:42 -0000 Received: from cs1.cs.huji.ac.il (132.65.16.10) by a.mx.sunsite.dk with SMTP; 17 Apr 2007 09:33:39 -0000 Received: from wrath.cs.huji.ac.il ([132.65.80.62]) by cs1.cs.huji.ac.il with esmtp id 1Hdk4B-000L7S-4k; Tue, 17 Apr 2007 12:33:39 +0300 Message-ID: <46249473.8040206@cs.huji.ac.il> Date: Tue, 17 Apr 2007 12:33:39 +0300 From: David Peer Reply-To: davidpeer@cs.huji.ac.il Organization: Hebrew University - Computer User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Micah Cowan CC: zsh-workers@sunsite.dk Subject: Re: Bug in ulimit ? References: <46248CC2.4010901@cs.huji.ac.il> <462493C0.20700@cowan.name> In-Reply-To: <462493C0.20700@cowan.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Micah Cowan wrote: > David Peer wrote: > >> If the user run: ulimit -t 0, he can run jobs without any cputime >> limitation: >> > > This sounds more like a kernel problem to me than a zsh bug. I get the > same behavior on my Ubuntu 7.04 (beta) system, in _bash_. > > I note that getrlimit(2) says: > > In 2.6.x kernels before 2.6.17, a RLIMIT_CPU limit of 0 is wrongly > treated as "no limit" (like RLIM_INFINITY). Since kernel 2.6.17, set‐ > ting a limit of 0 does have an effect, but is actually treated as a > limit of 1 second. > > However, I'm running 2.6.20(-14-generic), and still experiencing that > symptom. > > I'll check if it's fixed in 2.6.21... but I forgot to mention that I use kernel 2.6.20.3