Skip to content

untrappable-signal

Detect attempts to handle signals that cannot be trapped.

Updated View as Markdown

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)
Navigation

Type to search…

↑↓ navigate↵ selectEsc close