dovecot-2.2: indexer-worker: Fixed keeping config connection ope...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 25 17:48:20 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/6d45b9bd1cff
changeset: 15946:6d45b9bd1cff
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 22 10:42:40 2013 +0200
description:
indexer-worker: Fixed keeping config connection open before dropping root privileges.
The initial settings reading doesn't really do anything, since the real
settings are again read by mail-storage-service.
diffstat:
src/indexer/indexer-worker.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r b0e68c53771e -r 6d45b9bd1cff src/indexer/indexer-worker.c
--- a/src/indexer/indexer-worker.c Fri Feb 22 10:17:14 2013 +0200
+++ b/src/indexer/indexer-worker.c Fri Feb 22 10:42:40 2013 +0200
@@ -45,6 +45,8 @@
int main(int argc, char *argv[])
{
+ enum master_service_flags service_flags =
+ MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN;
enum mail_storage_service_flags storage_service_flags =
MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT |
MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
@@ -52,7 +54,7 @@
MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT;
int c;
- master_service = master_service_init("indexer-worker", 0,
+ master_service = master_service_init("indexer-worker", service_flags,
&argc, &argv, "D");
while ((c = master_getopt(master_service)) > 0) {
switch (c) {
More information about the dovecot-cvs
mailing list