recoll gui: just exit when getting a signal, the idxthread is gone

This commit is contained in:
Jean-Francois Dockes 2012-02-18 11:46:54 +01:00
parent ef00bfae70
commit 9d7b654395

View File

@ -167,11 +167,10 @@ static void recollCleanup()
static void sigcleanup(int)
{
fprintf(stderr, "sigcleanup called\n");
// Cant call exit from here, because the atexit cleanup does some
// thread stuff that we can't do from signal context.
// Just set a flag and let the watchdog timer do the work
// We used to not call exit from here, because of the idxthread, but
// this is now gone, so...
recollNeedsExit = 1;
exit(1);
}
extern void qInitImages_recoll();