Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change IO.setup to set fd accessor; fixes socket setup
I don't really like this solution very much. Ideally the Socket classes would set @fd directly in their #initialize methods via a call to FileDescriptor.choose_type(fd). Having a +fd+ accessor on the IO class was intended only for debugging purposes. Let's go with this patch for now. If the larger refactoring of the IO class to use a private IO::FileDescriptor class is accepted then we can go back and change the Socket methods to conform better and remove this accessor.