Files
kandev/apps/backend/internal/agent/runtime/agentctl/launcher/sysprocattr_test.go
T
2026-06-26 10:09:23 +01:00

15 lines
290 B
Go

//go:build unix
package launcher
import (
"testing"
)
func TestBuildSysProcAttr_IsolatesAgentctlFromTerminalInterrupt(t *testing.T) {
attr := buildSysProcAttr()
if !attr.Setpgid {
t.Error("Setpgid must be true: standalone agentctl should not receive terminal Ctrl+C directly")
}
}