e75c8b37c8
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
15 lines
295 B
Go
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")
|
|
}
|
|
}
|