bugfix: pipefd of an event was not taken into account to determine maxfd of cioloop