Commit d10470e5 authored by Dominik Charousset's avatar Dominik Charousset

Fail poll_once early if no pollset is available

parent 62a9fc16
...@@ -134,6 +134,8 @@ void multiplexer::close_pipe() { ...@@ -134,6 +134,8 @@ void multiplexer::close_pipe() {
} }
bool multiplexer::poll_once(bool blocking) { bool multiplexer::poll_once(bool blocking) {
if (pollset_.empty())
return false;
// We'll call poll() until poll() succeeds or fails. // We'll call poll() until poll() succeeds or fails.
for (;;) { for (;;) {
int presult; int presult;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment