You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
321 B
Go
20 lines
321 B
Go
//go:build !linux && !darwin
|
|
|
|
package worker
|
|
|
|
import "os/exec"
|
|
|
|
func configureProcess(_ *exec.Cmd) {}
|
|
|
|
func terminateProcessGroup(command *exec.Cmd) {
|
|
if command.Process != nil {
|
|
_ = command.Process.Kill()
|
|
}
|
|
}
|
|
|
|
func killProcessGroup(command *exec.Cmd) {
|
|
if command.Process != nil {
|
|
_ = command.Process.Kill()
|
|
}
|
|
}
|