Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unlimited file descripters causes problems for zsh-4.0.2
- X-seq: zsh-workers 16096
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: unlimited file descripters causes problems for zsh-4.0.2
- Date: Sun, 21 Oct 2001 20:17:17 +0000
- In-reply-to: <1011021190727.ZM14572@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200110182344.TAA12655@xxxxxxxxxxxxxxxxxxxxxx> <1011019164041.ZM8348@xxxxxxxxxxxxxxxxxxxxxxx> <1011019175644.ZM9169@xxxxxxxxxxxxxxxxxxxxxxx> <1011021190727.ZM14572@xxxxxxxxxxxxxxxxxxxxxxx>
On Oct 21, 7:07pm, Bart Schaefer wrote:
}
} } Here's a suggestion: Once, at startup, we scan all the way to zopenmax()
} } looking for open descriptors, and set a global to the largest number we
} } find.
I should point out that it's possible for sysconf(_SC_OPEN_MAX) to return
zero even when the actual descriptor limit is greater than OPEN_MAX. So
there is still potential for zsh to leave high-numbered descriptors open
in closeallelse() et al., should the OS have a particularly brain-damaged
POSIX implementation and someone really wishes to force it.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author