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

   > I have found the issue and will submit a PR shortly:
   > 
   > The thttpd socket needs to be opened without the SOCK_CLOEXEC flag, as a 
CGI script needs access to the socket after the CGI task is created.
   > 
   > This is the result, I believe, of a PR last year 
[here](https://github.com/apache/nuttx-apps/pull/2595)
   
   @TimJTi it's wrong to add SOCK_CLOEXEC at
   
https://github.com/apache/nuttx-apps/pull/2595/files#diff-7b30545ee837b42152a77d494a57bae1340948ec098f6df957e344b1938920cfR2358
 since the child task created at 
https://github.com/apache/nuttx-apps/blob/master/netutils/thttpd/thttpd_cgi.c#L1060
 expect to inheritance conn_fd.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to