Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 1a2928486c805961b1302464038dd140946d2fea
https://github.com/tribe29/checkmk/commit/1a2928486c805961b1302464038dd1409…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-02-05 (Wed, 05 Feb 2020)
Changed paths:
M livestatus/src/Makefile.am
M livestatus/src/OutputBuffer.cc
A livestatus/src/SocketUtils.cc
A livestatus/src/SocketUtils.h
Log Message:
-----------
Make write(2) non-blocking
POSIX does not guarantee that `write(2)` does not block after
`select(2)` or `poll(2)`. So we set the fd to O_NONBLOCK
before writing and handle EAGAIN and EWOULDBLOCK thereafter.
Note that `read(2)` is different so that `read(2)` after
`select(2)` does not block.
CMK-3701
Change-Id: I674583636b0f1ea8cd415124509728bec83ed15f