POLLHUP is really intendend for purposes of output polling. Hopefully
this solves a problem with POLLHUP events causing premature
unregistration of event handlers (and subsequent hang in waitpid).
_bufsize = 4096
_exceptional_events = PollConstants.POLLERR | PollConstants.POLLNVAL
- _registered_events = PollConstants.POLLIN | PollConstants.POLLHUP | \
+ _registered_events = PollConstants.POLLIN | \
_exceptional_events
def _unregister(self):
if event & self._exceptional_events:
self._unregister()
self.cancel()
- elif event & PollConstants.POLLHUP:
- self._unregister()
- self.wait()
-