[Pdns-dev] Re: Bug in pdns_recursor (pdns 2.9.9)
ahu at ds9a.nl
Tue Jun 24 12:17:06 CEST 2003
On Tue, Jun 24, 2003 at 10:28:48AM +0200, Norbert Sendetzky wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Monday 23 June 2003 22:41, Christof Meerwald wrote:
> > Yes, pdns is using threads, but the recursor is not (instead it
> > uses some kind of non-preemptive user-level threads using
> > makecontext/swapcontext on Unix or fibers on Win32).
> Ok, the savest way would be to remove the function bodies in the
> extern "C" block and link pdns_recursor against -lpthread. Otherwise
> the mutex things won't work either. Maybe this is not a "real"
> problem, but the current code is very unclean.
We can't compile the pdns_recursor against -lpthread as that causes big
problems with get/set/make/swapcontext.
I've discussed that with Ulrich Drepper, one of the glibc guys, and it is
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
More information about the Pdns-dev