]> git.proxmox.com Git - lxcfs.git/blob - debian/patches/use-line-buffered-mode-on-stdout.patch
use line buffered mode for stdout
[lxcfs.git] / debian / patches / use-line-buffered-mode-on-stdout.patch
1 use line buffered mode for stdout
2
3 We observerd duplicated syslog messages without this.
4 Seems to be a systemd bug.
5
6 Index: new/lxcfs.c
7 ===================================================================
8 --- new.orig/lxcfs.c
9 +++ new/lxcfs.c
10 @@ -3183,6 +3183,8 @@ int main(int argc, char *argv[])
11 newargv[cnt++] = argv[1];
12 newargv[cnt++] = NULL;
13
14 + setlinebuf(stdout);
15 +
16 if (!cgfs_setup_controllers())
17 goto out;
18