Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 6, 2024

Commits on Feb 6, 2024

  1. cgroup,cleaner: ignore EINTR on epoll_wait

    This avoids killing an active cleaner when attaching to it via
    PTRACE_SEIZE, which is helpful when debugging.
    Snaipe committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    b351478 View commit details
    Browse the repository at this point in the history
  2. cgroup,cleaner: wait on level-triggered transitions

    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.
    Snaipe committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    2e775f9 View commit details
    Browse the repository at this point in the history