Don't abort if we get a signal while waiting for the pager

This commit is contained in:
Eelco Dolstra 2014-12-12 14:05:23 +01:00
parent 54616be64f
commit 5a2d451648

View File

@ -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();
}
}