Fix a parameter issue of "select()" on Linux and a data race bug