forked from lix-project/lix
Don't abort if we get a signal while waiting for the pager
This commit is contained in:
parent
54616be64f
commit
5a2d451648
|
@ -328,11 +328,15 @@ RunPager::RunPager()
|
||||||
|
|
||||||
RunPager::~RunPager()
|
RunPager::~RunPager()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
if (pid != -1) {
|
if (pid != -1) {
|
||||||
std::cout.flush();
|
std::cout.flush();
|
||||||
close(STDOUT_FILENO);
|
close(STDOUT_FILENO);
|
||||||
pid.wait(true);
|
pid.wait(true);
|
||||||
}
|
}
|
||||||
|
} catch (...) {
|
||||||
|
ignoreException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue