aristanetworks / bst

A one-stop shop for process isolation
MIT License
101 stars 9 forks source link

cgroup,cleaner: wait on level-triggered transitions #94

Closed Snaipe closed 9 months ago

Snaipe commented 9 months ago

The old code used edge-triggered transitions for epoll_wait on the cgroup.events file, which meant we were losing some events if we weren't fast enough to process them. This, in turn, caused the unlucky cleaner processes to hang on an epoll_wait, unable to clean up the unpopulated cgroup.

With this commit, we now operate on level-triggered transitions, which allows cleaners to do their jobs properly.