Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: fd used for saving redirected fds leaked to child processes



On Mon, Aug 14, 2017 at 8:24 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Mon, 14 Aug 2017 07:49:52 -0700
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>>
>> Another flag in the fdtable array?
>
> That probably works --- by default we've got to search 64 fd's

Perhaps something that it would work to put in a global is a value for
max_saved_fd so we only have to search from 11 - max no matter the
size of the actual fdtable array.

The max could be reset when the fds are closed.



Messages sorted by: Reverse Date, Date, Thread, Author