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

[v10] Terminate the local shell when a session closes #22231

Merged
merged 2 commits into from Mar 9, 2023

Conversation

jakule
Copy link
Contributor

@jakule jakule commented Feb 24, 2023

Backport of #19817

When a client sends an SSH session before the shell process ends, Teleport sends the SIGKILL signal to the subprocess. This causes the still-leaving shell to be resigned to PID 1 and live forever. This PR tried to stop the terminal first before killing the subprocess to prevent the terminal from living forever.

When a client sends an SSH session before the shell process ends, Teleport sends the SIGKILL signal to the subprocess. This causes the still-leaving shell to be resigned to PID 1 and live forever.
This PR tried to stop the terminal first before killing the subprocess to prevent the terminal from living forever.

Closes #13335
Closes #6245
Closes #4469
@jakule
Copy link
Contributor Author

jakule commented Feb 28, 2023

@LKozlowski Friendly ping

@jakule jakule enabled auto-merge March 1, 2023 17:11
@jakule jakule added this pull request to the merge queue Mar 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 1, 2023
@jakule jakule added this pull request to the merge queue Mar 9, 2023
Merged via the queue into branch/v10 with commit d33e74b Mar 9, 2023
@jakule jakule deleted the jakule/v10/close-terminal-fd branch March 9, 2023 18:58
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.

None yet

3 participants