Reopening stdin, stdout and stderr if they are pointing to /dev/null.

In theory, this could be for any open FD. Not sure whether to worry about that for now. In practice, do we allow this?