bug-bash
[Top][All Lists]
Advanced

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

Re: Leak in BASH "named" file descriptors?


From: Greg Wooledge
Subject: Re: Leak in BASH "named" file descriptors?
Date: Thu, 28 Jan 2016 12:54:16 -0500
User-agent: Mutt/1.4.2.3i

On Thu, Jan 28, 2016 at 12:40:57PM -0500, Mathieu Patenaude wrote:
> Yes, using ":" also illustrate the same (or similar) behavior that I'm
> experiencing with my script.  Using the "here" string creates the
> additional weirdness of showing that the temporary file content is actually
> "deleted", but the bash process keep the FD open.  Which is quite strange
> since it appears to have done half the job...

That's perfectly normal.  The here-document or here-string payload is
written to a temporary file, which is kept open, but unlinked.  That
way, when bash closes it (or is killed) the contents are simply deleted
by the file system, and bash doesn't have to do the clean-up.

I still don't know whether your original issue is a bug or not, though.



reply via email to

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