Improve handling of pthread_mutex_lock error case

Stephen Frost <sfrost@snowman.net>

Commit: 8359ed806f3300b79f110f1ac216c58c0732d05c
Author: Stephen Frost <sfrost@snowman.net>
Date: 2013-08-01T19:42:07Z
Releases: 9.4.0
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

Files

PathChange+/−
src/interfaces/libpq/fe-secure.c modified +13 −1