Re: dup2() uses FD already allocated to NET skt

2025-06-28 Thread Tim Hardisty
Actually - it might be a change last year. The socket is now opened like this and I assume CLOEXEC will mess up the operation of the executed CGI app (will investigate on Monday; not sure what socket mode it needs to be): hc->conn_fd = accept4(listen_fd, (struct sockaddr *)&sa, &sz, SOCK_CLOEXE

Re: dup2() uses FD already allocated to NET skt

2025-06-28 Thread Alan C. Assis
Hi Tim, Yes, I think send() is the preferred form to work with sockets because you can have fine control, i.e. passing flags at forth argument (MSG_DONTWAIT, etc). If you suspect that the bug was caused by some recent modification, try to find a supported board that was used to test thttpd in the