[tracker-miners/wip/carlosg/control-fix-quit] tracker-control: Fix arguments in signal handler
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/control-fix-quit] tracker-control: Fix arguments in signal handler
- Date: Thu, 4 Feb 2021 21:43:31 +0000 (UTC)
commit 2dee4bdec331762cc535f1f5d1806a9d58daf251
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jan 23 12:19:20 2021 +0100
tracker-control: Fix arguments in signal handler
The first argument here is not the main loop, this means 1) invalid
memory accesses and 2) the daemon does not really quit.
The particular local case was even worse, the random memory area
being interpreted as the main loops mutex looks locked, so the daemon
simply stalled on it.
src/tracker-control/tracker-main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker-control/tracker-main.c b/src/tracker-control/tracker-main.c
index 095c73ba4..bc5ffd056 100644
--- a/src/tracker-control/tracker-main.c
+++ b/src/tracker-control/tracker-main.c
@@ -104,7 +104,8 @@ initialize_signal_handler (void)
}
static void
-files_index_close_cb (GMainLoop *main_loop)
+files_index_close_cb (TrackerMinerFilesIndex *index,
+ GMainLoop *main_loop)
{
g_debug ("No further watched folders, closing");
g_main_loop_quit (main_loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]