mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 10:23:46 +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
|
|
}
|