Default severity: warning
Unix-like kernels handle SIGKILL and SIGSTOP directly. They are never
delivered to the process, so registering them with os/signal cannot work.
Bad
signal.Notify(ch, os.Kill)Good
signal.Notify(ch, syscall.SIGTERM)Detect attempts to handle signals that cannot be trapped.
Default severity: warning
Unix-like kernels handle SIGKILL and SIGSTOP directly. They are never
delivered to the process, so registering them with os/signal cannot work.
signal.Notify(ch, os.Kill)signal.Notify(ch, syscall.SIGTERM)