TimJTi commented on issue #3111:
URL: https://github.com/apache/nuttx-apps/issues/3111#issuecomment-3016590225

   OK...the file descriptor for the socket is closed during the exec() of the 
CGI app allowing it to be resued by dup2() and is invalid for use by the CGI 
app. This is assuming the NuttX documentation is correct in saying only the 
first 3 file descriptors will be valid after the exec.
   
   I will try changing the exec() to a posix_spawn() as that should allow the 
open socket FD to be used correctly and report back and/or submit a PR.


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to