Fix error handling in replacement pthread_barrier_init().
authorThomas Munro <tmunro@postgresql.org>
Mon, 31 May 2021 23:22:22 +0000 (11:22 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 31 May 2021 23:31:06 +0000 (11:31 +1200)
commita40646e30d85e51a76fb620822d4d921b6802157
treee2a1bfb5d543b519646be7e83dcb36152105c39a
parent7c544ecdad814ccda709cfb6aa7d62840c3a7486
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.
src/port/pthread_barrier_wait.c