|
a/src/qtgui/main.cpp |
|
b/src/qtgui/main.cpp |
|
... |
|
... |
165 |
LOGDEB2(("recollCleanup: done\n"));
|
165 |
LOGDEB2(("recollCleanup: done\n"));
|
166 |
}
|
166 |
}
|
167 |
|
167 |
|
168 |
static void sigcleanup(int)
|
168 |
static void sigcleanup(int)
|
169 |
{
|
169 |
{
|
170 |
fprintf(stderr, "sigcleanup called\n");
|
170 |
// We used to not call exit from here, because of the idxthread, but
|
171 |
// Cant call exit from here, because the atexit cleanup does some
|
171 |
// this is now gone, so...
|
172 |
// thread stuff that we can't do from signal context.
|
|
|
173 |
// Just set a flag and let the watchdog timer do the work
|
|
|
174 |
recollNeedsExit = 1;
|
172 |
recollNeedsExit = 1;
|
|
|
173 |
exit(1);
|
175 |
}
|
174 |
}
|
176 |
|
175 |
|
177 |
extern void qInitImages_recoll();
|
176 |
extern void qInitImages_recoll();
|
178 |
|
177 |
|
179 |
static const char *thisprog;
|
178 |
static const char *thisprog;
|