On Tue, Sep 23, 2014 at 22:57, Nick Guenther wrote: > > > On September 23, 2014 8:12:36 PM EDT, Stuart Henderson <[email protected]> > wrote: >>On 2014/09/23 17:27, Nick Guenther wrote: >>> LD_PRELOAD, >>/usr/local/share/doc/pkg-readmes/postgresql-plv8-* explains this too. >> >>> But I do not understand why libpthread.so refuses to load if the >>system >>> knows it needs it. >> >>libpthread is special > > Sorry for the noise and thank you for taking the time to answer me anyway. > I guess linux is less restrictive about dlopen(), then?
This is a somewhat artificial limitation of the way libc and libpthread interact. We don't support "becoming threaded" after programs have already started, but long (long long) term, moving better thread support into libc will eliminate the restriction.
