`coder ssh` should exit when its parent process dies
オープン
@johnstcn がすでに取り組んでいます。
2026年1月7日 から。
評価
この issue はまだ評価されていません。
説明
Problem:
We observed an internal user having a large number of orphaned coder ssh processes running on their laptop.
This was contributing to increased load on coderd.
Our hypothesis is that the user's editor (Cursor) was automatically running a setup script over SSH that invoked coder ssh (via ProxyCommand in .ssh/config) and exiting with an error.
Steps to reproduce:
- Run a new shell and get its PID
bash
$ echo $$
12345
- SSH into a workspace and run a long-lived command
coder ssh my-workspace sleep infinity
- Validate that the
coder sshcommand is running
ps -eo pid,ppid,command | grep [c]oder
12346 12345 coder ssh my-workspace sleep infinity
- Kill the SSH process' parent (the bash shell)
kill -9 12345
- Observe the
coder sshprocess still running but now owned by PID 1
ps -eo pid,ppid,command | grep [c]oder
12346 1 coder ssh my-workspace sleep infinity
- 主要言語
- 言語のデータがありません
- スター
- 3
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/internal のほかの issue
-
flake
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
flake
-
flake