[Pdns-dev] Re: Bug in pdns_recursor (pdns 2.9.9)

Christof Meerwald cmeerw at web.de
Tue Jun 24 20:01:11 CEST 2003


On Tue, 24 Jun 2003 13:27:07 +0200, Norbert Sendetzky wrote:
> Therefore "return (pthread_t) 0;" is ok (return tmp; would be 
> undefined and thus a bug), but what's about the other pthread 
> functions (mutex_{lock,unlock}) Logger is using? They are not defined 
> in the extern "C" block. Shouldn't they be defined either?

I guess the reason why they are not causing any trouble is because Linux's
libc already provides dummy implementations for them as weak functions (and
uses them for single-threaded programs - multithreaded programs get the real
implementation from libpthread).


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw at jabber.at
mailto cmeerw at web.de


More information about the Pdns-dev mailing list