[Pdns-dev] thread id in backend?

Norbert Sendetzky norbert at linuxnetworks.de
Tue Dec 16 18:24:58 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bert

Is there a way to get the id of the thread, which established the 
backend?

I want to shuffle the ldap-host parameter to be able to bind all 
distributor threads to different ldap server for load balancing if 
there is more than one.

getpid() works with the Linux thread implementation, but may not be 
portable to other thread implementations.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj/fP+4ACgkQxMLs5v5/7eDwaACgtzdQb1UecufAet20F/P/wwbT
mGUAn084ekzzU9r6fn2gMIXn69nxiUfB
=opwK
-----END PGP SIGNATURE-----




More information about the Pdns-dev mailing list