Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure any pending stdout writes are flushed.
Since stdout is line-buffered by default, we need to ensure any pending writes are flushed before exiting. Ideally, this should be enforced by each utility. Since all utilities are wrapped by mkmain, this was a convenient location to enforce this behavior. I previously was handling this on a case-by-case basis. See: rust-lang/rust#23818
- Loading branch information