Skip to content
Snippets Groups Projects
Commit 5a2d4516 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

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

parent 54616be6
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment