-Fix: documentation and error handling for poll()