Clean inherited file descriptors from the parent while forking subprocess.

Ran rspec tests on Mac.