mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-10 05:01:28 -10:00
* fix(background): treat POSIX zombie leader as already-exited terminateOwnedProcess always returned leaderAlreadyExited=false, so TerminateCommand surfaced "did not exit after SIGKILL" when ps was unavailable and the leader was already a waitable zombie. Probe the leader the way Windows uses GetExitCodeProcess, then still signal the group so live descendants are not skipped. * fix(background): preserve live-group termination failures --------- Co-authored-by: cairn-intern <[email protected]>
11 lines
354 B
Go
11 lines
354 B
Go
//go:build !windows && !linux && !darwin
|
|
|
|
package background
|
|
|
|
// leaderWaitableExited cannot positively identify a waitable-exited leader on
|
|
// this platform without ps. Returning false keeps TerminateCommand's existing
|
|
// conservative behaviour: a termination error is not discarded after reap.
|
|
func leaderWaitableExited(pid int) bool {
|
|
return false
|
|
}
|