Commit dbc51213 authored by Dominik Charousset's avatar Dominik Charousset

Fail poll_once early if no pollset is available

parent 460d4b41
......@@ -134,6 +134,8 @@ void multiplexer::close_pipe() {
}
bool multiplexer::poll_once(bool blocking) {
if (pollset_.empty())
return false;
// We'll call poll() until poll() succeeds or fails.
for (;;) {
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