mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Flush std::cout before closing stdout
This commit is contained in:
parent
43579c9799
commit
65243ee833
1 changed files with 1 additions and 0 deletions
|
@ -319,6 +319,7 @@ RunPager::RunPager()
|
|||
RunPager::~RunPager()
|
||||
{
|
||||
if (pid != -1) {
|
||||
std::cout.flush();
|
||||
close(STDOUT_FILENO);
|
||||
pid.wait(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue