mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-01-31 05:39:03 +00:00
update signal handling
This commit is contained in:
parent
cf869fe9cd
commit
281a86dd32
@ -36,7 +36,15 @@ func main() {
|
|||||||
|
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
done := make(chan bool, 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() {
|
go func() {
|
||||||
_ = <-sigs
|
_ = <-sigs
|
||||||
|
Loading…
Reference in New Issue
Block a user