mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-27 02:03:56 +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
|
|
}
|