summaryrefslogtreecommitdiff
path: root/src/core/dbus.c
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/core/dbus.c
parentfb0302ddbc47f61349286abfe7fbaa12c7069e25 (diff)
downloadsystemd-4ff9bc2ea6e5daf08b5c9de17c0dcf16c3b7379e.tar.gz
tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r--src/core/dbus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c
index 74b1c51c1d..8ae5d173f0 100644
--- a/src/core/dbus.c
+++ b/src/core/dbus.c
@@ -622,6 +622,9 @@ static int bus_on_connection(sd_event_source *s, int fd, uint32_t revents, void
nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
if (nfd < 0) {
+ if (ERRNO_IS_ACCEPT_AGAIN(errno))
+ return 0;
+
log_warning_errno(errno, "Failed to accept private connection, ignoring: %m");
return 0;
}