Skip to content

Instantly share code, notes, and snippets.

@hmaurer
Created August 15, 2013 13:57
Show Gist options
  • Save hmaurer/6241014 to your computer and use it in GitHub Desktop.
Save hmaurer/6241014 to your computer and use it in GitHub Desktop.
// Kill causes the Process to exit immediately.
func (p *Process) Kill() error {
return p.kill()
}
func (p *Process) kill() error {
return p.Signal(Kill)
}
// The only signal values guaranteed to be present on all systems
// are Interrupt (send the process an interrupt) and
// Kill (force the process to exit).
var (
Kill Signal = syscall.SIGKILL
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment