Ouss4 commented on pull request #2638:
URL: https://github.com/apache/incubator-nuttx/pull/2638#issuecomment-753507961


   @xiaoxiang781216 regarding the part that moves the special case (fd1 == 
fd2), I think it still has to be done once we verify that fd1 is valid.  
Otherwise `dup2` won't be returning an error but rather fd2.  I think in this 
case we would end up with a wrong errno value.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to