A ceiling-killed nix copy still orphans its ssh — #716's drain window frees Run, it does not reap the process tree #718
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of #716 (GOTCHAS #70).
ExecCLI.Runnow setscmd.WaitDelay(execWaitDelay, 10s), so a fired ceiling closes the pipes and returns aResultinstead of blocking forever on a grandchild that inherited them. That fixes the reporting.It does not fix the leak.
exec.CommandContext's cancel SIGKILLs the direct child only. When the ceiling fires onnix copy --to ssh-ng://…, nix dies and itssshlives on — holding a socket to a droplet the drive is about to destroy, and holding fds we have already stopped reading. Over a run of drives that accumulates on the drive host.The ask: reap the tree, not the child. The obvious shape is
SysProcAttr{Setpgid: true}plus acmd.Cancelthat signals the process GROUP — but that changes signal semantics for every clan/nix invocation in this package, including the PTY-driven ones instdio.go, so it needs its own red-before-green rather than riding #716's.Proof to write: a ceiling test that asserts no descendant of the invocation survives the kill (today's
TestExecCLI_CeilingEndsTheInvocationEvenWhenAGrandchildHoldsTheOutputPipedeliberately asserts only thatRunreturns).swarm-claim host=matou-dev-server-01 run=9443
(automated multi-host claim — lowest live claim id works this ticket)
enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716close-report for #718 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope