]> git.kaiwu.me - haproxy.git/commit
MINOR: tree-wide: always consider EWOULDBLOCK in addition to EAGAIN
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 18:32:15 +0000 (20:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 18:32:15 +0000 (20:32 +0200)
commitacef5e27b0b89076308286208999cd31161cf741
tree84d2c02a4ab161dca6c4aeb097a75918c82b2fbf
parent197715ae2147eff0bfdb577612ce4a31d1aa65d3
MINOR: tree-wide: always consider EWOULDBLOCK in addition to EAGAIN

Some older systems may routinely return EWOULDBLOCK for some syscalls
while we tend to check only for EAGAIN nowadays. Modern systems define
EWOULDBLOCK as EAGAIN so that solves it, but on a few older ones (AIX,
VMS etc) both are different, and for portability we'd need to test for
both or we never know if we risk to confuse some status codes with
plain errors.

There were few entries, the most annoying ones are the switch/case
because they require to only add the entry when it differs, but the
other ones are really trivial.
14 files changed:
src/check.c
src/connection.c
src/dns.c
src/fd.c
src/log.c
src/mworker.c
src/proto_quic.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/quic_sock.c
src/raw_sock.c
src/sock.c
src/ssl_sock.c