From: Serge E. Hallyn <[email protected]>

Signed-off-by: Serge E. Hallyn <[email protected]>
---
 nsexec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nsexec.c b/nsexec.c
index 859b6c3..8b96bc9 100644
--- a/nsexec.c
+++ b/nsexec.c
@@ -146,7 +146,7 @@ int move_to_new_cgroup(int newcgroup)
 
        snprintf(cgroupname, 150, "%s/%d", cgroupbase, newcgroup);
        ret = mkdir(cgroupname, 0755);
-       if (ret)
+       if (ret && errno != EEXIST)
                return 0;
        snprintf(tasksfname, 200, "%s/tasks", cgroupname);
        fout = fopen(tasksfname, "w");
-- 
1.6.0.6

_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to