Last analyzed 67ce7cf 10 days ago
Default analysis branch is
Currently analyzing run
Found trapping a signal that cannot be trapped SCC-SA1016
Anti-pattern
10 days ago8 months old
os.Kill cannot be trapped (did you mean syscall.SIGTERM?)
50
51func handleInterrupt(fn func()) {
52	ch := make(chan os.Signal, 1)
53	signal.Notify(ch, os.Interrupt, os.Kill)54	<-ch
55	fmt.Println("")
56	fn()