Improve handling of pthread_mutex_lock error case
We should really be reporting a useful error along with returning
a valid return code if pthread_mutex_lock() throws an error for
some reason. Add that and back-patch to 9.0 as the prior patch.
Pointed out by Alvaro Herrera
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/71127756af12ed64da9e82639f88b6ed13e5f600
Modified Files
--------------
src/interfaces/libpq/fe-secure.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)