Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bizarre Solaris problem
- X-seq: zsh-workers 3614
- From: Peter Stephenson <pws@xxxxxx>
- To: Anthony Heading <aheading@xxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Bizarre Solaris problem
- Date: Fri, 14 Nov 1997 15:15:05 +0100
- In-reply-to: "Anthony Heading"'s message of "Thu, 13 Nov 1997 17:17:15 MET." <199711131717.RAA04184@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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 <pws@xxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author