Subject: Re: libpthread busted?
To: Thor Lancelot Simon <tls@rek.tjls.com>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 03/05/2003 21:07:16
> If you want to be able to dynamically load such code, even if
> the main body of your program doesn't use threads, there is a simple way
> to make it safe to do so: just link to libpthread in the first place and
> it will all work fine.

I suspect this isn't always possible, all it takes is for some service
the program uses to be implemented in a dlopen()ed library, and for that
to need libpthread and you have a massive breakage!
This could happen if (say) the dns lookup code was implemented using threads.
(that one is unlikely, but who knows what a PAM module might do).

	David

-- 
David Laight: david@l8s.co.uk