--- src/config.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/config.c b/src/config.c index 513f95d..014b2b3 100644 --- a/src/config.c +++ b/src/config.c @@ -655,7 +655,12 @@ int cgroup_config_load_config(const char *pathname) int error; int namespace_enabled = 0; int mount_enabled = 0; - yyin = fopen(pathname, "re"); + + if (strcmp(pathname,"-")) { + yyin = fopen(pathname, "re"); + } else { + yyin = stdin; + } if (!yyin) { cgroup_dbg("Failed to open file %s\n", pathname); -- 1.7.2.3 ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel