fixed a select bug which caused rsync to use far more cpu time than