mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-25 08:33:47 +00:00
15 lines
197 B
Go
15 lines
197 B
Go
package internal
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func SysKill() (err error) {
|
|
err = killPomme()
|
|
|
|
return
|
|
}
|
|
|
|
func killPomme() (err error) {
|
|
err = unix.Kill(unix.Getpid(), unix.SIGINT)
|
|
|
|
return
|
|
}
|