The current select loop can SEGV if a handler removes itself. The following patch changes the select loop to be safe no matter how the io handler list is changed. It definitely changes the complexity of the dispatch but since there are usually so few fds, I don't think it really matters. Regards, Anthony Liguori