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

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

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

Visibility: public

Requested revision: 89ee4b86210dd3292f39e8ab405834a11865833c

Requested commit: 89ee4b86210dd3292f39e8ab405834a11865833c

Commit: 89ee4b86210dd3292f39e8ab405834a11865833c

Tree: 7aacb38ea122f3178fb38c547b9132f0d6b747ad

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

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

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