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

[feature request] *: introduce pidfd-socket flag #4045

Merged
merged 1 commit into from
Nov 22, 2023

Commits on Nov 21, 2023

  1. *: introduce pidfd-socket flag

    The container manager like containerd-shim can't use cgroup.kill feature or
    freeze all the processes in cgroup to terminate the exec init process.
    It's unsafe to call kill(2) since the pid can be recycled. It's good to
    provide the pidfd of init process through the pidfd-socket. It's similar to
    the console-socket. With the pidfd, the container manager like containerd-shim
    can send the signal to target process safely.
    
    And for the standard init process, we can have polling support to get
    exit event instead of blocking on wait4.
    
    Signed-off-by: Wei Fu <[email protected]>
    fuweid committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    94505a0 View commit details
    Browse the repository at this point in the history