execute: also set SO_SNDBUF when spawning a service with stdout/stderr connected to journald
This commit is contained in:
parent
2a700de472
commit
531dca789e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue