]> granicus.if.org Git - postgresql/commit
Cope with glibc too old to have epoll_create1().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2017 21:13:29 +0000 (17:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2017 21:13:54 +0000 (17:13 -0400)
commit53b157846024f28f8d48a6e0163c89a577f886a8
treebdab00ab6d7a73594eb85688e2c612b8ddb81118
parent28afff347a5db51a02b269fa13677d6924a88e78
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
src/backend/storage/ipc/latch.c