Skip to content

fix(agent): Allow signal propagation when running as PID 1 #6141

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

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Feb 9, 2023

When the agent was running as PID 1 and performing it's reaping duties, Docker ended up killing it immediately on stop instead of gracefully as one would hope. This adds some signal propagation so that interrupts are sent to the forked agent.

@mafredri mafredri self-assigned this Feb 9, 2023
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oofta... a good fix!

@mafredri mafredri changed the title fix(agent): Allow signal propagation when agent running as PID 1 fix(agent): Allow signal propagation when running as PID 1 Feb 9, 2023
@mafredri mafredri merged commit 6f3f7f2 into main Feb 9, 2023
@mafredri mafredri deleted the mafredri/fix-pid1-signals branch February 9, 2023 21:07
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2023
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-merge review, LGTM :+1

I admit that this had also an educational value for me, thanks for the ping!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants