On 2013/02/28 07:41, Andres Perera wrote:
> - would it be worth it to adjust _dl_printf and its usage to allow
> preceding logical output lines with pid? i ask because it was
> difficult to tell for me at first glance that it was forking something
> which ended up loading pthreads without having linked to it

not sure; maybe..

> - does it make since to have "plugin" shared object files that link to
> pthreads?

they can't. on OpenBSD there are weak symbols in libc which must be
overridden by symbols in libpthread when using threads; this doesn't
happen when you dlopen a plugin. there is special protection against
linking libraries to libpthread to avoid unexpected behaviour as a
result of this.

> that means that every user has to link aswell or preload it

yes.

Reply via email to