From 9d7b654395a370f4fc05d915e116485e92e0c1eb Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 18 Feb 2012 11:46:54 +0100 Subject: [PATCH] recoll gui: just exit when getting a signal, the idxthread is gone --- src/qtgui/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/qtgui/main.cpp b/src/qtgui/main.cpp index 906df25b..b6465692 100644 --- a/src/qtgui/main.cpp +++ b/src/qtgui/main.cpp @@ -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();