diff --git a/Events/Select.php b/Events/Select.php index a1bd2eb..8a71394 100644 --- a/Events/Select.php +++ b/Events/Select.php @@ -124,6 +124,11 @@ public function add($fd, $flag, $func, $args = array()) $this->_allEvents[$fd_key][$flag] = array($func, $fd); $this->_writeFds[$fd_key] = $fd; break; + case self::EV_EXCEPT: + $fd_key = (int)$fd; + $this->_allEvents[$fd_key][$flag] = array($func, $fd); + $this->_exceptFds[$fd_key] = $fd; + break; case self::EV_SIGNAL: // Windows not support signal. if(DIRECTORY_SEPARATOR !== '/') { @@ -250,7 +255,7 @@ public function loop() { $e = null; while (1) { - if(DIRECTORY_SEPARATOR !== '/') { + if(DIRECTORY_SEPARATOR === '/') { // Calls signal handlers for pending signals pcntl_signal_dispatch(); }