Re: Leaking file descriptors on fast SIGINT's in PROMPT_COMMAND, PS1
From:
Al Payne
Subject:
Re: Leaking file descriptors on fast SIGINT's in PROMPT_COMMAND, PS1
Date:
Sat, 13 Apr 2019 23:33:36 -0400
User-agent:
NeoMutt/20180716
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.
The same goes for Fedora and CentOS for the versions of Bash Tycho
listed.
Al