Re: File descriptor leak in tdlookup.c:respond

Matthew Dempsky <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
On Tue, Feb 17, 2009 at 1:56 PM, Mark Johnson <[email protected]> wrote:
> On Tue, Feb 17, 2009 at 3:45 PM, Jeff King <[email protected]> wrote:
>> It looks like the only person who had a problem with this in practice
>> was doing a "cp" over his cdb file.
>
> What's a reasonable course of action in this situation?  Log 'cdb is
> horked' and keep going?

Free the cdb structure, close the file descriptor, and return 0.
server.c will write a - entry in the logs.

Users shouldn't update their cdb in place anyway.  It causes downtime
for DNS queries.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.