While this looks like it might be the correct approach it seems like a fair bit of noise for what it is used for. I am OK with leaving this here for now if the other devs think this should be integrated into the core code and we make a sweep of the codebase to replace all occurrences of "poll(fds, 1,...)" and similar after which it could be removed from here.