Terminate file playback process groups

This commit is contained in:
Brandon McGinty (chatgpt) authored and Brandon McGinty committed 2026-08-10 10:25:25 -04:00
1 parent 1d6ab79ed0
commit cf9e1c6d0a
4 files changed
+56 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
//go:build !(aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris)
package fileplayback
import "os/exec"
func configureProcessGroup(cmd *exec.Cmd) {}
func terminateProcessGroup(cmd *exec.Cmd) {
if cmd != nil && cmd.Process != nil {
_ = cmd.Process.Kill()
}
}