Terminate file playback process groups

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-10 10:25:25 -04:00
committed by Brandon McGinty
parent 1d6ab79ed0
commit cf9e1c6d0a
4 changed files with 56 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
package fileplayback
import (
"os/exec"
"testing"
)
func TestConfigureProcessGroupCreatesSeparateGroup(t *testing.T) {
cmd := exec.Command("true")
configureProcessGroup(cmd)
if cmd.SysProcAttr == nil || !cmd.SysProcAttr.Setpgid {
t.Fatal("ffmpeg process was not configured to lead its own process group")
}
}