diff --git a/cgroup.c b/cgroup.c index ba10209..fa7857b 100644 --- a/cgroup.c +++ b/cgroup.c @@ -164,7 +164,7 @@ static void run_cleaner_child(int lock, int parentfd, const char *name) } struct epoll_event event = { - .events = EPOLLET, + .events = 0, }; int epollfd = epoll_create1(0); @@ -192,8 +192,7 @@ static void run_cleaner_child(int lock, int parentfd, const char *name) for (;;) { int ready = epoll_wait(epollfd, &event, 1, -1); if (ready == -1 && errno != EINTR) { - warn("run_cgroup_child: epoll_wait cgroup.events"); - goto recursiveClean; + err(1, "run_cgroup_child: epoll_wait cgroup.events"); } rewind(eventsfp);