|
|
@ -25,6 +25,7 @@
|
|
|
|
#include <kiwix/cluceneIndexer.h>
|
|
|
|
#include <kiwix/cluceneIndexer.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <io.h>
|
|
|
|
#include <io.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -186,7 +187,11 @@ int main(int argc, char **argv) {
|
|
|
|
if (indexer != NULL) {
|
|
|
|
if (indexer != NULL) {
|
|
|
|
indexer->start(contentPath, indexPath);
|
|
|
|
indexer->start(contentPath, indexPath);
|
|
|
|
while (indexer->isRunning()) {
|
|
|
|
while (indexer->isRunning()) {
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
|
|
|
Sleep(1000);
|
|
|
|
|
|
|
|
#else
|
|
|
|
sleep(1);
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete indexer;
|
|
|
|
delete indexer;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|