Remove latch.c workaround for Linux < 2.6.27

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-02-26T23:10:23Z
Lists: pgsql-hackers

Attachments

Hello,

Commit 82ebbeb0 added a workaround for (already in 2017) ancient Linux
kernels with no EPOLL_CLOEXEC.  I don't see any such systems in the
build farm today (and if there is one hiding in there somewhere, it's
well past time to upgrade).  I'd like to rip that code out, because
I'm about to commit some new code that uses another 2.6.17+
XXX_CLOEXEC flag, and it'd be silly to have to write new workaround
code for that too, and a contradiction to have fallback code in one
place but not another.  Any objections?

Commits

  1. Remove latch.c workaround for Linux < 2.6.27.

  2. Cope with glibc too old to have epoll_create1().