select timeout support and improved procss polling