summaryrefslogtreecommitdiff
path: root/src/socket-proxy
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-10 19:40:40 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-10 20:03:38 +0200
commitfb0302ddbc47f61349286abfe7fbaa12c7069e25 (patch)
tree7f1999c9892d0fdcbd584ad7249dd3e218517c58 /src/socket-proxy
parent7f000106012f2e641b5fd0604f6668e61a0f44c7 (diff)
downloadsystemd-fb0302ddbc47f61349286abfe7fbaa12c7069e25.tar.gz
errno-util: add new ERRNO_IS_ACCEPT_AGAIN() test
This is modelled after the existing ERRNO_IS_RESOURCES() and in particular ERRNO_IS_DISCONNECT(). It returns true for all transient network errors that should be handled like EAGAIN whenever we call accept() or accept4(). This is per documentation in the accept(2) man page that explicitly says to do so in the its "RETURN VALUE" section. The error list we cover is a bit more comprehensive, and based on existing code of ours. For example EINTR is included too (since we need that to cover cases where we call accept()/accept4() on a blocking socket), and of course ERRNO_IS_DISCONNECT() is a bit more comprehensive than the list in the man page too.
Diffstat (limited to 'src/socket-proxy')
0 files changed, 0 insertions, 0 deletions