You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
720 B
720 B
kproc
Now have been moved to kexec
This lib is not maintained any more. !!!
This is a golang lib, offer a better way to kill all child process.
Tested on windows, linux, darwin.
This lib has been used in fswatch.
Usage
go get -v github.com/codeskyblue/kproc
example:
func main() {
p := kproc.ProcString("python flask_main.py")
p.Start()
time.Sleep(3 * time.Second)
err := p.Terminate(syscall.SIGKILL)
if err != nil {
log.Println(err)
}
}