threads update for more warning msgs and
to save thread enabled status to gb.conf.
This commit is contained in:
12
Pages.cpp
12
Pages.cpp
@ -4049,6 +4049,18 @@ bool printRedBox ( SafeBuf *mb , TcpSocket *sock , HttpRequest *hr ) {
|
||||
mb->safePrintf("%s",boxEnd);
|
||||
}
|
||||
|
||||
if ( ! g_conf.m_useThreadsForSystemCalls ) {
|
||||
if ( adds ) mb->safePrintf("<br>");
|
||||
adds++;
|
||||
mb->safePrintf("%s",box);
|
||||
mb->safePrintf("Threads for system calls are disabled. "
|
||||
"Might hurt performance because these "
|
||||
"are calls to "
|
||||
"3rd party executables and "
|
||||
"can take a long time to run, like pdf2html.");
|
||||
mb->safePrintf("%s",boxEnd);
|
||||
}
|
||||
|
||||
mb->safePrintf("</div>");
|
||||
|
||||
return (bool)adds;
|
||||
|
@ -12049,7 +12049,7 @@ void Parms::init ( ) {
|
||||
m->m_off = (char *)&g_conf.m_useThreadsForDisk - g;
|
||||
m->m_type = TYPE_BOOL;
|
||||
m->m_def = "0";
|
||||
m->m_flags = PF_NOSAVE;
|
||||
m->m_flags = 0;//PF_NOSAVE;
|
||||
m->m_page = PAGE_MASTER;
|
||||
m->m_obj = OBJ_CONF;
|
||||
m++;
|
||||
@ -12061,7 +12061,7 @@ void Parms::init ( ) {
|
||||
m->m_off = (char *)&g_conf.m_useThreadsForIndexOps - g;
|
||||
m->m_type = TYPE_BOOL;
|
||||
m->m_def = "0";
|
||||
m->m_flags = PF_NOSAVE;
|
||||
m->m_flags = 0;//PF_NOSAVE;
|
||||
m->m_page = PAGE_MASTER;
|
||||
m->m_obj = OBJ_CONF;
|
||||
m->m_group = 0;
|
||||
@ -12074,7 +12074,7 @@ void Parms::init ( ) {
|
||||
m->m_off = (char *)&g_conf.m_useThreadsForSystemCalls - g;
|
||||
m->m_type = TYPE_BOOL;
|
||||
m->m_def = "1";
|
||||
m->m_flags = PF_NOSAVE;
|
||||
m->m_flags = 0;//PF_NOSAVE;
|
||||
m->m_page = PAGE_MASTER;
|
||||
m->m_obj = OBJ_CONF;
|
||||
m->m_group = 0;
|
||||
|
Reference in New Issue
Block a user