diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-16 20:00:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-16 20:34:46 +0100 |
commit | 531dca789ea6b4c269ca2646515b42962f83d64a (patch) | |
tree | 2fc3b7ae7bbd1ac9e8fc7a6913eef78a7c173de9 /src/core | |
parent | 2a700de47200837af24f848c08d752f652302c6e (diff) |
execute: also set SO_SNDBUF when spawning a service with stdout/stderr connected to journald
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 55b8bb5bea..5abc69dec4 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -75,6 +75,8 @@ /* This assumes there is a 'tty' group */ #define TTY_MODE 0620 +#define SNDBUF_SIZE (8*1024*1024) + static int shift_fds(int fds[], unsigned n_fds) { int start, restart_from; @@ -221,6 +223,8 @@ static int connect_logger_as(const ExecContext *context, ExecOutput output, cons return -errno; } + fd_inc_sndbuf(fd, SNDBUF_SIZE); + dprintf(fd, "%s\n" "%s\n" |