mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Don't abort if we get a signal while waiting for the pager
This commit is contained in:
parent
54616be64f
commit
5a2d451648
1 changed files with 8 additions and 4 deletions
|
@ -328,10 +328,14 @@ RunPager::RunPager()
|
|||
|
||||
RunPager::~RunPager()
|
||||
{
|
||||
if (pid != -1) {
|
||||
std::cout.flush();
|
||||
close(STDOUT_FILENO);
|
||||
pid.wait(true);
|
||||
try {
|
||||
if (pid != -1) {
|
||||
std::cout.flush();
|
||||
close(STDOUT_FILENO);
|
||||
pid.wait(true);
|
||||
}
|
||||
} catch (...) {
|
||||
ignoreException();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue