]> code.citadel.org Git - citadel.git/blobdiff - citadel/control.c
* Removed the session_count() function. Instead, keep a reference count
[citadel.git] / citadel / control.c
index 1455c72c7ba6ef6b16b2f35b91c6849e563633ea..74e2edea994d0d43f27946e2d0be8826571d8bbd 100644 (file)
@@ -18,9 +18,6 @@
 #include <string.h>
 #include <errno.h>
 #include <limits.h>
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
 #include <syslog.h>
 #include "citadel.h"
 #include "server.h"
@@ -164,6 +161,8 @@ void cmd_conf(char *argbuf) {
                cprintf("%s\n", config.c_logpages);
                cprintf("%d\n", config.c_createax);
                cprintf("%d\n", config.c_maxmsglen);
+               cprintf("%d\n", config.c_min_workers);
+               cprintf("%d\n", config.c_max_workers);
                cprintf("000\n");
                }
 
@@ -239,6 +238,10 @@ void cmd_conf(char *argbuf) {
                        case 20: if (atoi(buf) >= 8192)
                                        config.c_maxmsglen = atoi(buf);
                                break;
+                       case 21: if (atoi(buf) >= 2)
+                                       config.c_min_workers = atoi(buf);
+                       case 22: if (atoi(buf) >= config.c_min_workers)
+                                       config.c_max_workers = atoi(buf);
                        }
                    ++a;
                    }