postgresql/src/template
Thomas Munro f2857af485 Use unnamed POSIX semaphores on Cygwin.
Testing on CI showed that Cygwin's semctl() can fail with EAGAIN
(possibly due to resource limits in cygserver that could be tuned, not
examined).  Switch to so-called POSIX semaphores instead, which don't
seem to fail in that way (possibly due to a more direct implementation
using Windows semaphore primitives instead of talking to cygserver,
based on a cursory glance at the source).

Other known problems still prevent PostgreSQL from running on Cygwin
without random crashes, but this rarer problem was noticed while
testing.

Discussion: https://postgr.es/m/CA%2BhUKG%2BQ6DU4Ov9LrvUyDcF3oHS4KMRVSKmVGaeePq-kOyG9gA%40mail.gmail.com
2023-01-06 10:33:28 +13:00
..
aix aix: Remove checks for very old OS versions 2022-08-07 09:36:01 -07:00
cygwin Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
darwin Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
freebsd
linux
netbsd On NetBSD, force dynamic symbol resolution at postmaster start. 2022-08-30 17:28:37 -04:00
openbsd
solaris
win32