chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a700de
)
execute: also set SO_SNDBUF when spawning a service with stdout/stderr connected...
author
Lennart Poettering
<lennart@poettering.net>
Mon, 16 Dec 2013 19:00:09 +0000
(20:00 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 16 Dec 2013 19:34:46 +0000
(20:34 +0100)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 55b8bb5bea07820c1f77dd57a5806f413d0dc826..5abc69dec4e6de7fcf146ea64fe9772a98cf72fe 100644
(file)
--- 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"