bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many open files


From: Chet Ramey
Subject: Re: Too many open files
Date: Thu, 21 Mar 2019 20:14:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.0

On 3/16/19 12:15 AM, address@hidden wrote:
> Hello.  Running the attached demonstration script results in the following
> errors, but I do not understand why:
> 
>> ./tmof: redirection error: cannot duplicate fd: Too many open files
>> ./tmof: cannot make pipe for process substitution: Too many open files
>> ./tmof: line 19: <( find "$d" -type f ): Too many open files
> 
> Removal of either the seemingly meaningless “if true” conditional or empty
> array declaration results in no error.  Could this be a bug?

Thanks for the report. The /dev/fd version of this code needs to reap
process substitutions a little more often. It can't be *too* aggressive,
since the fds can still be read even after the process generating the
data has terminated, but it can do a little more.

This will be fixed in the next devel branch push.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]