Windows: improve indexing process management. Fix Pidfile locking.

Use a stop file to request stop of indexing when the indexer was not
started from the current GUI instance.
This commit is contained in:
Jean-Francois Dockes
2019-02-14 14:12:08 +01:00
parent 0e866f1bce
commit 8853cb505a
5 changed files with 181 additions and 17 deletions
+4
View File
@@ -1377,6 +1377,10 @@ string RclConfig::getPidfile() const
{
return path_cat(getCacheDir(), "index.pid");
}
string RclConfig::getIdxStopFile() const
{
return path_cat(getCacheDir(), "index.stop");
}
/* Eliminate the common leaf part of file paths p1 and p2. Example:
* /mnt1/common/part /mnt2/common/part -> /mnt1 /mnt2. This is used
+1
View File
@@ -203,6 +203,7 @@ class RclConfig {
string getPidfile() const;
/** Get indexing status file name */
string getIdxStatusFile() const;
string getIdxStopFile() const;
/** Do path translation according to the ptrans table */
void urlrewrite(const string& dbdir, string& url) const;
ConfSimple *getPTrans() {