diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-01-11 10:48:40 -0800 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-01-11 10:48:40 -0800 |
commit | 9fc8d00d741d17ff25c0193f182103d00d11582a (patch) | |
tree | b989bcc902fe75b07bc145c3dca3c0eb321732e0 /.github/PULL_REQUEST_TEMPLATE | |
parent | 6dd8b3b4122d9a4dccf17c00a290349a1509a7d6 (diff) |
MonitorFdHup: Make it work on macOS again
It appears that on current macOS versions, our use of poll() to detect
client disconnects no longer works. As a workaround, poll() for
POLLRDNORM, since this *will* wake up when the client has
disconnected. The downside is that it also wakes up when input is
available. So just sleep for a bit in that case. This means that on
macOS, a client disconnect may take up to a second to be detected,
but that's better than not being detected at all.
Fixes #7584.
Diffstat (limited to '.github/PULL_REQUEST_TEMPLATE')
0 files changed, 0 insertions, 0 deletions