Use a more standard method of determining the pager's exit status.
This commit is contained in:
parent
9495ca740b
commit
a54c0f5097
1 changed files with 2 additions and 2 deletions
|
|
@ -134,8 +134,8 @@ output_stream_t::~output_stream_t()
|
||||||
|
|
||||||
int status;
|
int status;
|
||||||
wait(&status);
|
wait(&status);
|
||||||
if (status & 0xffff != 0)
|
if (! WIFEXITED(status) || WEXITSTATUS(status) != 0)
|
||||||
throw std::logic_error("Something went wrong in the pager");
|
throw std::logic_error("Error in the pager");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue