| author | |
| committer | |
| log | 45b505c93070cb0815e81c9e909e9ce840569af3 |
| tree | 0c20697043349de6263de15cb6fd1d4f6cf84b77 |
| parent | c9587d3e4013011b703ded68aefafba41550bbd7 |
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.1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/process.zig+1| ... | @@ -1760,6 +1760,7 @@ pub fn cleanExit() void { | ... | @@ -1760,6 +1760,7 @@ pub fn cleanExit() void { |
| 1760 | if (builtin.mode == .Debug) { | 1760 | if (builtin.mode == .Debug) { |
| 1761 | return; | 1761 | return; |
| 1762 | } else { | 1762 | } else { |
| 1763 | std.debug.lockStdErr(); | ||
| 1763 | exit(0); | 1764 | exit(0); |
| 1764 | } | 1765 | } |
| 1765 | } | 1766 | } |