Terminate file playback process groups
This commit is contained in:
committed by
Brandon McGinty
parent
1d6ab79ed0
commit
cf9e1c6d0a
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user