57,58c57,66 < if(false === stream_select($read, $write = NULL, $except = NULL, $nexttimer)) { < die("Error on stream select - windoze?"); --- > $select_failed = 0; > while(false === stream_select($read, $write = NULL, $except = NULL, $nexttimer)) { > if($select_failed > 5) { > die("Failed to sleep, shutting down"); > } > else { > debug("OS failed to put us to sleep, will try again in 1 second"); > sleep(1); > $select_failed++; > }