omegafox/launcher/procgroup_win.go
daijro 8e5144abe0 Launcher: Better process handling
- Automatically run chmod on linux & macos
- Manage camoufox with process group on unix
- Closing camoufox kills launcher, & vice versa
- Exclude useless warnings from output
- Make return code of launcher match camoufox process
2024-08-06 21:40:02 -05:00

16 lines
238 B
Go

//go:build windows
// +build windows
package main
import (
"os/exec"
)
func setProcessGroupID(cmd *exec.Cmd) {
// Windows doesn't support process groups in the same way
}
func killProcessGroup(cmd *exec.Cmd) {
cmd.Process.Kill()
}