Some code optimization

os.Kill is non-catchable, non-ignorable
pull/2437/head
jejayhe 2020-04-16 10:24:11 +08:00
parent 8d75477412
commit c6694e0f1a
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ var (
format = flag.String("format", "json", "Format of input file.")
/* We have to do this here because Golang's Test will also need to parse flag, before
main func in this file is run.
main func in this file is run.
*/
_ = func() error {
@ -166,7 +166,7 @@ func main() {
{
osSignals := make(chan os.Signal, 1)
signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM)
signal.Notify(osSignals, os.Interrupt, syscall.SIGTERM)
<-osSignals
}
}