Flush std::cout before closing stdout
This commit is contained in:
@@ -319,6 +319,7 @@ RunPager::RunPager()
|
||||
RunPager::~RunPager()
|
||||
{
|
||||
if (pid != -1) {
|
||||
std::cout.flush();
|
||||
close(STDOUT_FILENO);
|
||||
pid.wait(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user