bug-bash
[Top][All Lists]
Advanced

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

Re: Leaking file descriptors on fast SIGINT's in PROMPT_COMMAND, PS1


From: Chet Ramey
Subject: Re: Leaking file descriptors on fast SIGINT's in PROMPT_COMMAND, PS1
Date: Sun, 14 Apr 2019 13:31:57 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/13/19 11:33 PM, Al Payne wrote:
> On Sat, Apr 13, 2019 at 03:19:17PM -0400, Chet Ramey wrote:
>> On 3/28/19 8:01 AM, Tycho Kirchner wrote:
>>> the *interactive* bash leaks (pipe-)file-descriptors when fast interrupts
>>> (SIGINT) occur. The bug occurs on all bash-versions tested (see below),
>>> including 5.0.2(1)-release.
>>
>> I don't see any issue on Mac OS X.
>>
> 
> I can reproduce the problem as described on Mac OS here. After starting
> the while loop, switch back to the first session (that is now scrolling
> with the SIGINGs) and hold ctrl-c. "leaking fds" appears fairly quickly 
> and /dev/fd for the affected session does show several new descriptors
> remaining after breaking out of the while loop.

OK, I think I see it. It 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]