aboutsummaryrefslogtreecommitdiff
path: root/libc/libc-test/build.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-12 11:41:52 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-12 11:41:52 -0800
commit2095641dd9d1245d7f7425e008f4bff8bfcd8a84 (patch)
tree11f8da19cf7d1f771ec822731d795cb1009476e3 /libc/libc-test/build.rs
parent44b8c57a6f8701c50b179e482deca79a9e4e7acb (diff)
downloadnitrocli-2095641dd9d1245d7f7425e008f4bff8bfcd8a84.tar.gz
nitrocli-2095641dd9d1245d7f7425e008f4bff8bfcd8a84.tar.bz2
Properly flush stdout before process exit
We exit the program using the process::exit function. This function just exits the program directly, without any cleanup. That can be a problem because IO buffers may not be flushed either. For a (typically) line buffered entity like stdout that may result in data not terminated by a newline symbol being not displayed properly. This change explicitly flushes stdout before exiting the process to alleviate this problem. Note that stderr output is unaffected, because stderr is not buffered by design.
Diffstat (limited to 'libc/libc-test/build.rs')
0 files changed, 0 insertions, 0 deletions