mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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.
This commit is contained in:
parent
c9587d3e40
commit
45b505c930
1 changed files with 1 additions and 0 deletions
|
|
@ -1760,6 +1760,7 @@ pub fn cleanExit() void {
|
|||
if (builtin.mode == .Debug) {
|
||||
return;
|
||||
} else {
|
||||
std.debug.lockStdErr();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue