stash/pkg/exec/shell_windows.go
TgSeed abd76f7e58
Fix/ffprobe unmarshalling error (#2685)
Fix/ffprobe unmarshalling error
2022-06-22 10:49:14 +10:00

16 lines
323 B
Go

//go:build windows
// +build windows
package exec
import (
"os/exec"
"syscall"
"golang.org/x/sys/windows"
)
// hideExecShell hides the windows when executing on Windows.
func hideExecShell(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{CreationFlags: windows.DETACHED_PROCESS & windows.CREATE_NO_WINDOW}
}