Make dup2() work if second file descriptor doesn't exist
The code I was dealing with for some reason closed the second file descriptor before dup2, but that should be valid.
The ?
here may be accidental, given the let _ =
.
The code I was dealing with for some reason closed the second file descriptor before dup2, but that should be valid.
The ?
here may be accidental, given the let _ =
.