handle threads on EINTR from select() in Loop.cpp.