set_close_on_exec for Netcgi sockets

Christophe
2019-11-06T22:35:58Z

Shouldn't the socket created by Unix.socket (Unix.domain_of_sockaddr saddr) Unix.SOCK_STREAM 0 on line 831 in netcgi_fcgi.ml be set the close-on-exec flag? Indeed the process handling the FCGI connection may fork subprocesses in order not to block the main one (and these should not inherit the open socket).