stash/vendor/github.com/asticode/go-astikit/os_others.go
cj c1a096a1a6
Caption support (#2462)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2022-05-06 11:59:28 +10:00

12 lines
231 B
Go

// +build !js !wasm
package astikit
import (
"os"
"syscall"
)
func isTermSignal(s os.Signal) bool {
return s == syscall.SIGABRT || s == syscall.SIGKILL || s == syscall.SIGINT || s == syscall.SIGQUIT || s == syscall.SIGTERM
}