This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//go:build !unix
|
||||
|
||||
package gitx
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// sysProcAttr has no portable equivalent outside unix; the default is fine.
|
||||
func sysProcAttr() *syscall.SysProcAttr { return nil }
|
||||
|
||||
// terminate kills just the child. Helper processes it spawned may outlive it,
|
||||
// but syncbot is deployed on Linux, where proc_unix.go handles this properly.
|
||||
func terminate(pid int) {
|
||||
if p, err := os.FindProcess(pid); err == nil {
|
||||
_ = p.Kill()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user