summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-stream.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-13 10:15:59 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-13 14:17:25 +0200
commit768fcd779fbb9fd86932da4bef031260b88da210 (patch)
tree6da14bf24f4c562514e2c43d7c84c9747231effa /src/journal/journald-stream.c
parentMerge pull request #28014 from bluca/portable_fixes (diff)
downloadsystemd-768fcd779fbb9fd86932da4bef031260b88da210.tar.xz
systemd-768fcd779fbb9fd86932da4bef031260b88da210.zip
socket: bump listen() backlog to INT_MAX everywhere
This is a rework of #24764 by Cristian Rodríguez <crodriguez@owncloud.com>, which stalled. Instead of assigning -1 we'll use a macro defined to INT_MAX however.
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r--src/journal/journald-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index 735e2c5e8b..222b036698 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -938,7 +938,7 @@ int server_open_stdout_socket(Server *s, const char *stdout_socket) {
(void) chmod(sa.un.sun_path, 0666);
- if (listen(s->stdout_fd, SOMAXCONN) < 0)
+ if (listen(s->stdout_fd, SOMAXCONN_DELUXE) < 0)
return log_error_errno(errno, "listen(%s) failed: %m", sa.un.sun_path);
} else
(void) fd_nonblock(s->stdout_fd, true);