diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-12 11:41:52 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-12 11:41:52 -0800 |
commit | 2095641dd9d1245d7f7425e008f4bff8bfcd8a84 (patch) | |
tree | 11f8da19cf7d1f771ec822731d795cb1009476e3 /base32/LICENSE-APACHE | |
parent | 44b8c57a6f8701c50b179e482deca79a9e4e7acb (diff) | |
download | nitrocli-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 'base32/LICENSE-APACHE')
0 files changed, 0 insertions, 0 deletions