summaryrefslogtreecommitdiff
path: root/src/journal/journald-stream.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/journal/journald-stream.c
parentfb0302ddbc47f61349286abfe7fbaa12c7069e25 (diff)
downloadsystemd-4ff9bc2ea6e5daf08b5c9de17c0dcf16c3b7379e.tar.gz
tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r--src/journal/journald-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index aa2db68634..24d4ac30b2 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -13,6 +13,7 @@
#include "alloc-util.h"
#include "dirent-util.h"
#include "env-file.h"
+#include "errno-util.h"
#include "escape.h"
#include "fd-util.h"
#include "fileio.h"
@@ -605,7 +606,7 @@ static int stdout_stream_new(sd_event_source *es, int listen_fd, uint32_t revent
fd = accept4(s->stdout_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
if (fd < 0) {
- if (errno == EAGAIN)
+ if (ERRNO_IS_ACCEPT_AGAIN(errno))
return 0;
return log_error_errno(errno, "Failed to accept stdout connection: %m");