MCPcopy Create free account
hub / github.com/apache/httpd / x_child_init

Function x_child_init

modules/examples/mod_example_hooks.c:851–865  ·  view source on GitHub ↗

* All our process initialiser does is add its trace to the log. * * This is a VOID hook: all defined handlers get called. */

Source from the content-addressed store, hash-verified

849 * This is a VOID hook: all defined handlers get called.
850 */
851static void x_child_init(apr_pool_t *p, server_rec *s)
852{
853 char *note;
854 char *sname = s->server_hostname;
855
856 /*
857 * The arbitrary text we add to our trace entry indicates for which server
858 * we're being called.
859 */
860 sname = (sname != NULL) ? sname : "";
861 note = apr_pstrcat(p, "x_child_init(", sname, ")", NULL);
862 trace_startup(p, s, NULL, note);
863
864 apr_pool_cleanup_register(p, s, x_child_exit, x_child_exit);
865}
866
867/*
868 * The hook runner for ap_hook_http_scheme is aliased to ap_http_scheme(),

Callers

nothing calls this directly

Calls 1

trace_startupFunction · 0.85

Tested by

no test coverage detected