Branch: refs/heads/master
Home: https://github.com/ClusterLabs/libqb
Commit: 1a7ea3b8d8bf9d5ffbbfdc785ace2b81e9f2356d
https://github.com/ClusterLabs/libqb/commit/1a7ea3b8d8bf9d5ffbbfdc785ace2...
Author: Christine Caulfield <ccaulfie(a)redhat.com>
Date: 2015-10-01 (Thu, 01 Oct 2015)
Changed paths:
M lib/log.c
Log Message:
-----------
log: don't call dlopen inside dl_iterate_phdr()
Some platforms (eg. FreeBSD 10+) don't support calling dlopen() from
within a dl_iterate_phdr() callback; so save all of the dlpi_names to
a list and iterate over them afterwards.
This fixes a deadlock which occurs in dlopen() when called from
within dl_iterate_phdr() on FreeBSD 10+ when linked to libthr.
Patch from dpejesh on github.
Reviewed-by: Christine Caulfield <ccaulfie(a)redhat.com>