pgsql: Improve handling of pthread_mutex_lock error case - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Improve handling of pthread_mutex_lock error case
Date
Msg-id E1V4ynK-0002HX-Ly@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8359ed806f3300b79f110f1ac216c58c0732d05c

Modified Files
--------------
src/interfaces/libpq/fe-secure.c |   14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Improve handling of pthread_mutex_lock error case
Next
From: Stephen Frost
Date:
Subject: pgsql: Improve handling of pthread_mutex_lock error case