check error on syscall dup2