-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Should libcontainer automatically reap runc:[1:CHILD]? #1443
Comments
To be clear, |
That is true it is still is wise for them to have to subreaper in case some zombies aren't cleaned up, but those would be fairly rare cases and is also conditional on how they use the init process. |
We already register a subreaper in containerd and have it running from boot. containerd should not require any changes. |
I found @LittleLightLittleFire 's solution to be useful. I'm launching containers from a long-lived daemon process and the only examples of sub reaper implementations I found would reap every process. This caused problems if new processes were started during reaping. |
Yeah, I'll write a patch based on this in the coming days (I've been busy in the past few weeks with exams). |
Oh I can repurpose the patch into a pull request
…On Wed, 28 Jun 2017 at 2:34 pm, Aleksa Sarai ***@***.***> wrote:
Yeah, I'll write a patch based on this in the coming days (I've been busy
in the past few weeks with exams).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1443 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHKxpvbzTFCerMhohqX7l1DXHciwQ5cks5sIdfogaJpZM4NWFSs>
.
|
This would mean there is no need to install a subreaper.
This avoids boobytrapping anyone trying to use os.Exec and would mean downstream projects like containerd no longer have to have a custom reaper to prevent race conditions with
wait(2)
.Something like this perhaps?
The text was updated successfully, but these errors were encountered: