update signal handling

This commit is contained in:
xvzc 2022-01-04 17:38:36 +09:00
parent cf869fe9cd
commit 281a86dd32
2 changed files with 35 additions and 27 deletions

View File

@ -36,7 +36,15 @@ func main() {
sigs := make(chan os.Signal, 1)
done := make(chan bool, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(
sigs,
syscall.SIGKILL,
syscall.SIGINT,
syscall.SIGTERM,
syscall.SIGQUIT,
syscall.SIGCONT,
syscall.SIGHUP)
go func() {
_ = <-sigs

BIN
spoof-dpi

Binary file not shown.