# std: Avoid deadlock in the signal handler · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/be2adff087d4fb3ce6f559bf3563bf4ff7dd6df3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: be2adff087d4fb3ce6f559bf3563bf4ff7dd6df3

Requested commit: be2adff087d4fb3ce6f559bf3563bf4ff7dd6df3

Commit: be2adff087d4fb3ce6f559bf3563bf4ff7dd6df3

Tree: debcfbe391e54601aab02c36045ea1580bac5cca

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Avoid deadlock in the signal handler

stderr_mutex may still be held when we reach the signal handler, grab
our own stderr handle to print the error messages and avoid deadlocking.

Closes #7247

```

## Parents

- [a6222d1d4bd239530bccf42a1d20b4d48fb94139](https://git.cafe/gitcafe/zig/commit/a6222d1d4bd239530bccf42a1d20b4d48fb94139?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/be2adff087d4fb3ce6f559bf3563bf4ff7dd6df3?format=markdown)
