GUI: print error dialog when indexing cant start because of other indexer active (ie: the monitor)

This commit is contained in:
Jean-Francois Dockes 2011-04-29 17:46:15 +02:00
parent 4869dfa775
commit bbb2593461

View File

@ -88,6 +88,11 @@ void IdxThread::run()
Pidfile pidfile(myconf->getPidfile());
if (pidfile.open() != 0) {
// Have to sleep a little here else the main thread
// won't see the status change because it only tests
// after seeing IDXTS_NULL at least once. Better
// interlock needed...
sleep(2);
indexingstatus = IDXTS_ERROR;
indexingReason = "Indexing failed: other process active? " +
pidfile.getreason();