diff --git a/starter/cgroup_prepare.c b/starter/cgroup_prepare.c index b4404b1..18c7bcd 100644 --- a/starter/cgroup_prepare.c +++ b/starter/cgroup_prepare.c @@ -66,6 +66,11 @@ void remove_cgroup() { char cwd[PATH_MAX]; getcwd(cwd,sizeof(cwd)); chdir(cgroups_path); + chdir(cgroup_name); + write_file("cgroup.kill","1\n"); + struct timespec tw = {0,5}; + nanosleep(&tw,NULL); + chdir(".."); rmdir(cgroup_name); chdir(cwd); }