bug-bash
[Top][All Lists]
Advanced

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

Re: leaks fd for internal functions but not external command


From: Chet Ramey
Subject: Re: leaks fd for internal functions but not external command
Date: Thu, 25 Jul 2019 10:11:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 7/25/19 9:03 AM, Sam Liddicott wrote:

> Perhaps if the named fd is also closed on the same statement that opened
> it, it could be kept closed rather than saved and re-opened.
> Being closed at the same statement is a strong indicator that it was only
> used to aid fd transplants. Why keep open what the author closed?

That's an interesting suggestion. I considered it at some point, and
there's even a comment in the code about it. I'll look at it again.

Chet

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



reply via email to

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