cworthy/exits/abort.go
2021-08-29 18:27:05 +02:00

15 lines
166 B
Go

package exits
import (
"os"
"syscall"
)
func Abort() {
proc, err := os.FindProcess(os.Getpid())
if err != nil {
panic(err)
}
proc.Signal(syscall.SIGABRT)
}