Skip to content

Fix zombie tunnel process on forceful sst dev crash#6445

Open
vimtor wants to merge 1 commit intodevfrom
fix-sudo-tunnel-kill
Open

Fix zombie tunnel process on forceful sst dev crash#6445
vimtor wants to merge 1 commit intodevfrom
fix-sudo-tunnel-kill

Conversation

@vimtor
Copy link
Collaborator

@vimtor vimtor commented Feb 23, 2026

closes #6297

when the parent sst process is force-killed, the sudo tunnel subprocess survives and blocks future tunnels

fix: pipe stdin from parent to child. when the parent dies, the kernel closes the pipe, the child detects eof and cleans up

proof of it working

before

time=2026-02-20T16:32:07.982+01:00 level=INFO msg="killing process" pid=88579
time=2026-02-20T16:32:07.986+01:00 level=INFO msg="process killed with term" pid=88579
time=2026-02-20T16:32:07.986+01:00 level=INFO msg="untracked process" pid=88579
time=2026-02-20T16:32:07.986+01:00 level=INFO msg="killing process" pid=88579
time=2026-02-20T16:32:07.986+01:00 level=ERROR msg="failed to send sigterm" pid=88579

after

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using tunnel, killing sudo subprocess does not work (cancel does not work)

1 participant