[lxc-devel] lxcfs and print_subsystems()
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Nov 19 19:36:51 UTC 2015
Quoting Dietmar Maurer (dietmar at proxmox.com):
> OK, maybe this is just a bug in systemd logging code.
> The following patch fixes the problem:
>
> 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;
>
>
>
> it also helps if you print to stderr instead of stdout.
Thanks, Dietmar, https://github.com/lxc/lxcfs/commit/873c0a0953eb010b4b82acd4c10ae34d03ef7882
More information about the lxc-devel
mailing list