cg_prepare_for_wait
extern int cg_prepare_for_wait(const char *cgroup);
fd = cg_prepare_for_wait(cgroup);