# std.process.cleanExit: lock stderr before exiting · gitcafe/zig

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

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

Visibility: public

Requested revision: 45b505c93070cb0815e81c9e909e9ce840569af3

Requested commit: 45b505c93070cb0815e81c9e909e9ce840569af3

Commit: 45b505c93070cb0815e81c9e909e9ce840569af3

Tree: 0c20697043349de6263de15cb6fd1d4f6cf84b77

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.process.cleanExit: lock stderr before exiting

This makes it so that any other threads which are writing to stderr have
a chance to finish before the process terminates. It also clears the
terminal in case any progress has been written to stderr, while still
accomplishing the goal of not waiting until the update thread exits.

```

## Parents

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

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