Skip to content

fix: stop tearing down non-TTY processes on SSH session end #18673

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
Jun 30, 2025

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jun 30, 2025

(possibly temporary) fix for #18519

Matches OpenSSH for non-tty sessions, where we don't actively terminate the process.

Adds explicit tracking to the SSH server for these processes so that if we are shutting down we terminate them: this ensures that we can shut down quickly to allow shutdown scripts to run. It also ensures our tests don't leak system resources.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@spikecurtis spikecurtis marked this pull request as ready for review June 30, 2025 17:48
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me 👍

@spikecurtis spikecurtis merged commit b7cb275 into main Jun 30, 2025
35 checks passed
@spikecurtis spikecurtis deleted the spike/18519-non-tty-session-disposal branch June 30, 2025 18:06
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2025
Copy link
Member

@johnstcn johnstcn 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 👍

@spikecurtis
Copy link
Contributor Author

/cherry-pick release/2.24

@spikecurtis
Copy link
Contributor Author

/cherry-pick release/2.23

@spikecurtis
Copy link
Contributor Author

/cherry-pick release/2.22

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.

4 participants