In the original code if cdb_read encountered an error it returned an
error code and the calling function exited without closing the cdb data file
resulting in an fd leak.
The error could be a corrupted file or a file system error.
>
> Is this a bug that's been reported/open for a while or is this somthing i
> just discovered? This version of djbdns has been out for a long time now, i
> would think it would have been discovered a long time ago, expecially since
> when it starts happening tinydns stops responding to requests!
>
> Vincent yes please send me the patch and if you submitted a bug some where
> can you forword me that url too for tracking.
>
> ~Shaun
> ----- Original Message -----
> From: "Vincent Labrecque" <vnc@hush.ai>
> To: "Shaun" <mailinglists@unix-scripts.com>
> Sent: Thursday, November 16, 2006 9:02 AM
> Subject: Re: Too many open files tinydns?
>
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> >
> > On Wed, 15 Nov 2006 20:20:27 -0500 Shaun <mailinglists@unix-
> > scripts.com> wrote:
> >>diff on the source shows it's the same... also after i restarted
> >>tinydns now
> >>a lsof |grep data.cdb doesnt even show up at all which is weird...
> >
> > I have a patch for the fd leak, which i will submit to djb for
> > integration. If you care to take a look at it and run it ask me
> > and I'll send it to you.
> >
> > - -vincent
> > -----BEGIN PGP SIGNATURE-----
> > Note: This signature can be verified at https://www.hushtools.com/verify
> > Version: Hush 2.5
> >
> > wpwEAQECAAYFAkVcmZQACgkQsBV9fcPttKC/qwQAjPkuUuTnvuxsTuQEdB+CV359981R
> > llbnMiIPlVSdosBWvcQIpIKSjHNpdXv0VwgndEpHLRvBfBYev0WZpofAVk0iBMC+QojT
> > BBBt/3EXEXDMI+hxYgViK2mGitrxsy7JaZHoLCNHXFUKbmOE3i+/pCBhx40fJquGSOcK
> > m8vMYNM=
> > =C9SR
> > -----END PGP SIGNATURE-----
> >
> >
> >
>
>
|