Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: File descriptor madness
- X-seq: zsh-workers 17116
- From: Danek Duvall <duvall@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: File descriptor madness
- Date: Thu, 9 May 2002 11:47:04 -0700
- In-reply-to: <2496.1020968103@xxxxxxx>
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2496.1020968103@xxxxxxx>
Just checked the source for this, and it doesn't look like this is
scheduled for a change any time soon; this behavior is on purpose.
That said, you may be able to get away with closing the newly opened
file descriptor afterwards, but I think it would be better to
artificially force getpwuid() to use a higher fd, or perhaps dup2() to
move it after the call.
I'm sure it's been explained before, but why does the limit of 9 fds
exist? Is it just because of the limitations in redirection constructs?
Danek
Messages sorted by:
Reverse Date,
Date,
Thread,
Author