mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-05 13:06:36 +08:00
bug处理
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//go:build unix
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// setFFmpegSysProcAttr puts ffmpeg in its own process group so cancel can
|
||||
// tear down the whole group (and any helpers) reliably on Linux/macOS.
|
||||
func setFFmpegSysProcAttr(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
|
||||
}
|
||||
Reference in New Issue
Block a user