]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't use EV_CLEAR for kqueue events.
authorThomas Munro <tmunro@postgresql.org>
Tue, 17 Mar 2020 23:48:13 +0000 (12:48 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 18 Mar 2020 00:05:09 +0000 (13:05 +1300)
commit9b8aa0929390aab1f2f0859016e6110d283732dd
tree69e13d48e88d1d37606e829bb99f54173b1d0355
parent7bc84a1f304acc9f4705c4178eb362ddce310452
Don't use EV_CLEAR for kqueue events.

For the semantics to match the epoll implementation, we need a socket to
continue to appear readable/writable if you wait multiple times without
doing I/O in between (in Linux terminology: level-triggered rather than
edge-triggered).  This distinction will be important for later commits.
Similar to commit 3b790d256f8 for Windows.

Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com
src/backend/storage/ipc/latch.c