summaryrefslogtreecommitdiff
path: root/src/socket-proxy
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-10 19:50:53 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-10 22:11:18 +0200
commit4ff9bc2ea6e5daf08b5c9de17c0dcf16c3b7379e (patch)
tree138bbc253a16c0f32ec69f68f596d2d88d33aafd /src/socket-proxy
parentfb0302ddbc47f61349286abfe7fbaa12c7069e25 (diff)
downloadsystemd-4ff9bc2ea6e5daf08b5c9de17c0dcf16c3b7379e.tar.gz
tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call
Diffstat (limited to 'src/socket-proxy')
-rw-r--r--src/socket-proxy/socket-proxyd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index ee0c6c0be6..abbbc9f2d6 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -467,7 +467,7 @@ static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdat
nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
if (nfd < 0) {
- if (errno != -EAGAIN)
+ if (!ERRNO_IS_ACCEPT_AGAIN(errno))
log_warning_errno(errno, "Failed to accept() socket: %m");
} else {
(void) getpeername_pretty(nfd, true, &peer);