Files
kandev/apps/backend/internal/agent/runtime/agentctl/launcher/sysprocattr_test.go
T

15 lines
295 B
Go

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