Skip to content
Snippets Groups Projects
Commit 63946042 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Update log messages for execle() or fork() failures

To be more consistent in syntax and include more details (e.g. the command
being invoked).
parent bff68ad0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3196 passed
......@@ -4865,12 +4865,12 @@ static BOOL exec_cgi(http_session_t *session)
execle(cmdline,cmdline,NULL,env_list);
}
lprintf(LOG_ERR,"%04d !FAILED! execle() (%d)",session->socket,errno);
lprintf(LOG_ERR,"%04d !ERROR %d executing execle(%s)",session->socket, errno, cmdline);
exit(EXIT_FAILURE); /* Should never happen */
}
if(child==-1) {
lprintf(LOG_ERR,"%04d !FAILED! fork() errno=%d",session->socket,errno);
lprintf(LOG_ERR,"%04d !ERROR %d invoking fork()",session->socket,errno);
if (session->tls_sess)
close(in_pipe[1]); /* close write-end of pipe */
close(out_pipe[0]); /* close read-end of pipe */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment