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 | 75ecf543eb4077f6918fbb020c39315311a9decf (patch) | |
tree | 89e4dffe0d9acff85d7d9ad69ebd3db98a9ba97e /nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/LongOperationInProgressException.h | |
parent | 15e0ad34f8a86b685dc6fddae2813560930ca1a7 (diff) | |
download | nitrocli-75ecf543eb4077f6918fbb020c39315311a9decf.tar.gz nitrocli-75ecf543eb4077f6918fbb020c39315311a9decf.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 'nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/LongOperationInProgressException.h')
0 files changed, 0 insertions, 0 deletions