]> git.proxmox.com Git - lxcfs.git/commitdiff
use line buffered mode for stdout
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 19 Nov 2015 08:31:14 +0000 (09:31 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 19 Nov 2015 08:31:14 +0000 (09:31 +0100)
debian/changelog
debian/patches/series
debian/patches/use-line-buffered-mode-on-stdout.patch [new file with mode: 0644]

index c04768b5f4dfe8cefb22acd79f56ee805ffe6085..580328b36ebf6f3daa0913eb773a1bb2d8e88f77 100644 (file)
@@ -1,5 +1,7 @@
 lxcfs (0.12-pve1) unstable; urgency=medium
 
+  * use line buffered mode for stdout
+
   * update to latest upstream
     (commit 2407b199fc81b33c3e7fe55b838dc67941258350)
 
index bf650b42b1037ca3c7f99c19421c9e1728402554..7f2904bea71948f9f830afc514f03ee0cc480f72 100644 (file)
@@ -1 +1,2 @@
 do-not-start-without-lxcfs.patch
+use-line-buffered-mode-on-stdout.patch
diff --git a/debian/patches/use-line-buffered-mode-on-stdout.patch b/debian/patches/use-line-buffered-mode-on-stdout.patch
new file mode 100644 (file)
index 0000000..3dc8f81
--- /dev/null
@@ -0,0 +1,18 @@
+use line buffered mode for stdout
+
+We observerd duplicated syslog messages without this.
+Seems to be a systemd bug. 
+
+Index: new/lxcfs.c
+===================================================================
+--- new.orig/lxcfs.c
++++ new/lxcfs.c
+@@ -3183,6 +3183,8 @@ int main(int argc, char *argv[])
+       newargv[cnt++] = argv[1];
+       newargv[cnt++] = NULL;
++      setlinebuf(stdout);
++
+       if (!cgfs_setup_controllers())
+               goto out;