forked from lix-project/lix
Flush std::cout before closing stdout
This commit is contained in:
parent
43579c9799
commit
65243ee833
|
@ -319,6 +319,7 @@ RunPager::RunPager()
|
||||||
RunPager::~RunPager()
|
RunPager::~RunPager()
|
||||||
{
|
{
|
||||||
if (pid != -1) {
|
if (pid != -1) {
|
||||||
|
std::cout.flush();
|
||||||
close(STDOUT_FILENO);
|
close(STDOUT_FILENO);
|
||||||
pid.wait(true);
|
pid.wait(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue