tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dlopen() and libpthread


> On Fri, Oct 19, 2012 at 08:05:11AM +0000, Emmanuel Dreyfus wrote:
>> And my question is: why should libpthread be forbidden for dlopen(3)?
> Because it doesn't work correctly. libc behavior changes etc.
> Explicitly erroring out is a *huge* improvement over silent corruption
> as seen many, many times before.
> You might want to check if the DSO really needs libpthread, in many
> cases it isn't. E.g. if it just wants to use mutexes etc, but doesn't
> create threads itself, the libc stubs are good enough.

can you volunteer to improve our man pages to cover this faq?

the most of pthread man pages should say -lc instead of -lpthread, i guess.


> Joerg

Home | Main Index | Thread Index | Old Index