|KHTTP_FREE(3)||Library Functions Manual||KHTTP_FREE(3)|
khttp_child_free — free a
CGI instance for kcgi
khttp_child_free() functions free the resources
of req allocated by khttp_parse(3)
or khttp_fcgi_parse(3), flushing the HTTP data stream in
the process. After calling this function, the members of
req should not be used and the function should not be
if you're forking within your CGI application, be aware of some caveats.
Most web servers will continue to wait while
stdin are open
to the CGI application. Thus, if you fork a long-running application, you
must close out these file descriptors.
khttp_child_free() functions were written by
|September 23, 2021||OpenBSD 6.7|