From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10220 invoked from network); 14 Nov 1997 14:20:05 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Nov 1997 14:20:05 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id JAA22640; Fri, 14 Nov 1997 09:15:01 -0500 (EST) Resent-Date: Fri, 14 Nov 1997 09:15:01 -0500 (EST) Message-Id: <199711141415.PAA22498@hydra.ifh.de> To: Anthony Heading , zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: Bizarre Solaris problem In-reply-to: "Anthony Heading"'s message of "Thu, 13 Nov 1997 17:17:15 MET." <199711131717.RAA04184@gmp-etpres1.uk.jpmorgan.com> Date: Fri, 14 Nov 1997 15:15:05 +0100 From: Peter Stephenson Resent-Message-ID: <"ZEOCC2.0.eX5.ap5Rq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3614 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Anthony Heading wrote: > Haha! A quick update in case anyone is thinking about this. > > The problem I've just tracked down to process limits. csh is > initialising with the maxmimum number of file descriptors set to 64 > (indeed the value of OPEN_MAX and supposedly the maximum limit > therefore for RLIMIT_NOFILE). > > getrlimit(), however, believes that the maximum number of file > descriptors is 1024, and zsh is bumping the limit up to that value. > This appears to confuse the 4.1.3 gethostbyname(). We saw this business apropos of something else a while ago. OPEN_MAX is actually not the maximum limit, since it's run-time configurable under Solaris 2. So presumably the difference that's causing the OS bug to show up is because csh is too old-fashioned to care. Unless there's some reason for not following getrlimit() if all those descriptors aren't needed. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.