fix srvctrl thread stacksize

Sat, 26 Nov 2022 19:14:29 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 26 Nov 2022 19:14:29 +0100
changeset 439
255e316db762
parent 438
22eca559aded
child 440
d77b8f3e14e2

fix srvctrl thread stacksize

src/server/daemon/srvctrl.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/srvctrl.c	Sat Nov 26 17:07:08 2022 +0100
+++ b/src/server/daemon/srvctrl.c	Sat Nov 26 19:14:29 2022 +0100
@@ -43,7 +43,7 @@
 
 #include "srvctrl.h"
 
-#define SRVCTRL_THREAD_STACKSIZE 8192
+#define SRVCTRL_THREAD_STACKSIZE 262144
 
 static int srvctrl;
 static cxmutstr srvctrl_path;
@@ -182,9 +182,7 @@
 int srvctrl_handle_cmd(SrvCtrlClient *client, cxmutstr cmd) {
     if(!cx_strcmp(cx_strcast(cmd), cx_str("reconfig"))) {
         log_ereport(LOG_INFORM, "reconfigure server");
-        if(webserver_reconfig()) {
-            log_ereport(LOG_FAILURE, "cannot reload config");
-        } else {
+        if(!webserver_reconfig()) {
             log_ereport(LOG_INFORM, "reconfig: success");
         }
     } else if(!cx_strcmp(cx_strcast(cmd), cx_str("shutdown"))) {

mercurial