Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

codeskyblue/kproc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kproc

GoDoc

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)
	}
}

About

go lib. offer a better way to kill all child process. [cross platform]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published