]> git.proxmox.com Git - lxcfs.git/blame - debian/patches/use-line-buffered-mode-on-stdout.patch
do not kill lxcfs on service restart
[lxcfs.git] / debian / patches / use-line-buffered-mode-on-stdout.patch
CommitLineData
bb19972d
DM
1use line buffered mode for stdout
2
3We observerd duplicated syslog messages without this.
4Seems to be a systemd bug.
5
6Index: 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