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

Function set_script_socket

modules/generators/mod_cgid.c:1145–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145static const char *set_script_socket(cmd_parms *cmd, void *dummy, const char *arg)
1146{
1147 const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
1148 if (err != NULL) {
1149 return err;
1150 }
1151
1152 /* Make sure the pid is appended to the sockname */
1153 sockname = ap_append_pid(cmd->pool, arg, ".");
1154 sockname = ap_runtime_dir_relative(cmd->pool, sockname);
1155
1156 if (!sockname) {
1157 return apr_pstrcat(cmd->pool, "Invalid ScriptSock path",
1158 arg, NULL);
1159 }
1160
1161 return NULL;
1162}
1163static const char *set_script_timeout(cmd_parms *cmd, void *dummy, const char *arg)
1164{
1165 cgid_dirconf *dc = dummy;

Callers

nothing calls this directly

Calls 3

ap_check_cmd_contextFunction · 0.85
ap_append_pidFunction · 0.85
ap_runtime_dir_relativeFunction · 0.85

Tested by

no test coverage detected