Dup Vs Dup2. dup2 () makes newfd be the copy of oldfd, closing newfd first if