15 lines
166 B
Go
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)
|
|
}
|