go func() {
c := make(chan os.Signal)
signal.Notify(c, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
<-c
close(ss)
}()
go func() {
c := make(chan os.Signal)
signal.Notify(c, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
<-c
close(ss)
}()
本文标题:signal
本文链接:https://www.haomeiwen.com/subject/bpurgltx.html
网友评论