in src/mod_rivet_ng/rivet_lazy_mpm.c [498:518]
int LazyBridge_ExitHandler(rivet_thread_private* private)
{
/* This is not strictly necessary, because this command will
* eventually terminate the whole processes */
/* This will force the current thread to exit */
private->ext->keep_going = false;
if (!module_globals->single_thread_exit)
{
/* We now tell the supervisor to terminate the Tcl worker
* thread pool so that we can safely shutdown the process
* by calling exit() */
LazyBridge_Finalize(private->r->server);
}
return TCL_OK;
}