Skip to content

Commit c64e290

Browse files
committed
Flush digidoc-tool output
IB-9016 Signed-off-by: Raul Metsma <raul@metsma.ee>
1 parent 947d048 commit c64e290

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/digidoc-tool.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,10 @@ int main(int argc, char *argv[]) try
11131113
#endif
11141114
info << ")";
11151115
digidoc::initialize("digidoc-tool", info.str());
1116-
atexit(&digidoc::terminate);
1116+
atexit([] {
1117+
digidoc::terminate();
1118+
cout.flush();
1119+
});
11171120

11181121
if(argc < 2)
11191122
{

0 commit comments

Comments
 (0)