---
title: "untrappable-signal"
description: "Detect attempts to handle signals that cannot be trapped."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# untrappable-signal

**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

```go
signal.Notify(ch, os.Kill)
```

## Good

```go
signal.Notify(ch, syscall.SIGTERM)
```

Source: https://strider.gempir.com/analyzers/untrappable-signal/index.mdx
