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

Changing parker PDEATHSIG to SIGKILL #49207

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

eriktate
Copy link
Contributor

@eriktate eriktate commented Nov 19, 2024

This PR starts teleport park processes with a PDEATHSIG of SIGKILL instead of SIGQUIT. This should prevent leaking processes when the parent teleport exec is killed too quickly after teleport park is spawned.

changelog: Fixed an issue where teleport park processes could be leaked causing runaway resource usage.

@eriktate eriktate force-pushed the eriktate/fix-parker-deathsig branch from 0a09a9f to 75c935f Compare November 19, 2024 16:46
// if we ever need to run parkers on macOS or other platforms with no PDEATHSIG
// we should rework the parker to block on a pipe so it can exit when its parent
// is terminated
func parkerCommandOSTweaks(cmd *exec.Cmd) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs a matching no-op function in reexec_other.go.

@eriktate eriktate force-pushed the eriktate/fix-parker-deathsig branch from 75c935f to 61a6b83 Compare November 19, 2024 18:07
@eriktate eriktate force-pushed the eriktate/fix-parker-deathsig branch from 61a6b83 to c318a05 Compare November 19, 2024 22:51
@eriktate eriktate added this pull request to the merge queue Nov 19, 2024
Merged via the queue into master with commit 31df14d Nov 19, 2024
39 checks passed
@eriktate eriktate deleted the eriktate/fix-parker-deathsig branch November 19, 2024 23:27
@public-teleport-github-review-bot

@eriktate See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

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

Successfully merging this pull request may close these issues.

4 participants