`coder ssh` should exit when its parent process dies
@johnstcn đang làm issue này rồi.
Từ ngày 7/1/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 3
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/internal
-
flake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
flake
-
flake