Fix bug where select was being passed the wrong number of file descriptors.
Delete trailing whitespace.