]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd/log/sink: make the non-blocking initialization depend on the initialized bit
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 12:41:47 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 13:07:25 +0000 (15:07 +0200)
commit7e9776ad7b81cff4f0c1ff3781bc6388323a3655
tree7d749aabc7848681c8ffbbc2727809bf26521307
parentd660990cee7227fb052047ac3925af5950dfc62d
MINOR: fd/log/sink: make the non-blocking initialization depend on the initialized bit

Logs and sinks were resorting to dirty hacks to initialize an FD to
non-blocking mode. Now we have a bit for this in the fd tab so we can
do it on the fly on first use of the file descriptor. Previously it was
set per log server by writing value 1 to the port, or during a sink
initialization regardless of the usage of the fd.
src/fd.c
src/log.c
src/sink.c