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