fit the problem that the timeval of select() changes in linux