mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-12-23 06:30:43 +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
|
|
}
|