Fix error handling in replacement pthread_barrier_init().

Thomas Munro <tmunro@postgresql.org>

Commit: a40646e30d85e51a76fb620822d4d921b6802157
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-05-31T23:31:06Z
Releases: 14.0
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.

Files

PathChange+/−
src/port/pthread_barrier_wait.c modified +6 −8