indexing log: fix idx/daemlogfilename not working as expected

This commit is contained in:
Jean-Francois Dockes
2018-04-13 14:31:33 +02:00
parent 92e172cad0
commit 9481bc1ab4
3 changed files with 14 additions and 8 deletions
+4 -2
View File
@@ -624,8 +624,10 @@ int main(int argc, char **argv)
}
string reason;
RclInitFlags flags = (op_flags & OPT_m) && !(op_flags&OPT_D) ?
RCLINIT_DAEMON : RCLINIT_IDX;
int flags = RCLINIT_IDX;
if ((op_flags & OPT_m) && !(op_flags&OPT_D)) {
flags |= RCLINIT_DAEMON;
}
config = recollinit(flags, cleanup, sigcleanup, reason, &a_config);
if (config == 0 || !config->ok()) {
addIdxReason("init", reason);