Apparently 0 is a vaid file descriptor in OSX