in src/mod_rivet_ng/rivet_worker_mpm.c [366:389]
static void start_thread_pool (int nthreads)
{
int i;
for (i = 0; i < nthreads; i++)
{
apr_status_t rv;
apr_thread_t* slot;
rv = create_worker_thread(&slot);
module_globals->mpm->workers[i] = (void *) slot;
if (rv != APR_SUCCESS)
{
char errorbuf[RIVET_MSG_BUFFER_SIZE];
apr_strerror(rv, errorbuf,RIVET_MSG_BUFFER_SIZE);
ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, module_globals->server,
"Error starting request_processor thread (%d) rv=%d:%s\n",i,rv,errorbuf);
exit(1);
}
}
}