mirror of
https://github.com/NixOS/nix.git
synced 2024-11-29 18:22:27 +00:00
Don't abort if we get a signal while waiting for the pager
This commit is contained in:
parent
54616be64f
commit
5a2d451648
@ -328,10 +328,14 @@ RunPager::RunPager()
|
|||||||
|
|
||||||
RunPager::~RunPager()
|
RunPager::~RunPager()
|
||||||
{
|
{
|
||||||
if (pid != -1) {
|
try {
|
||||||
std::cout.flush();
|
if (pid != -1) {
|
||||||
close(STDOUT_FILENO);
|
std::cout.flush();
|
||||||
pid.wait(true);
|
close(STDOUT_FILENO);
|
||||||
|
pid.wait(true);
|
||||||
|
}
|
||||||
|
} catch (...) {
|
||||||
|
ignoreException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user