pgsql: Fix error handling in replacement pthread_barrier_init().

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix error handling in replacement pthread_barrier_init().
Date: 2021-05-31 23:32:45
Message-ID: E1lnrOn-0001Qw-GO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix error handling in replacement pthread_barrier_init().

Commit 44bf3d50 incorrectly used an errno-style interface when supplying
missing pthread functionality (i.e. on macOS), but it should check for
and return error numbers directly.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a40646e30d85e51a76fb620822d4d921b6802157

Modified Files
--------------
src/port/pthread_barrier_wait.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-06-01 00:28:54 pgsql: Add fallback implementation for setenv()
Previous Message Peter Eisentraut 2021-05-31 17:00:54 pgsql: Fix RADIUS error reporting in hba file parsing