Cope with glibc too old to have epoll_create1().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 82ebbeb0abfe40fe5f19a6fcdffc7484fd3a35b0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-04-27T21:13:53Z
Releases: 10.0
Cope with glibc too old to have epoll_create1().

Commit fa31b6f4e supposed that we didn't have to worry about that
anymore, but it seems that RHEL5 is like that, and that's still
a supported platform.  Put back the prior coding under an #ifdef,
adding an explicit fcntl() to retain the desired CLOEXEC property.

Discussion: https://postgr.es/m/12307.1493325329@sss.pgh.pa.us

Files

PathChange+/−
src/backend/storage/ipc/latch.c modified +9 −0

Discussion