[tracker-miners/wip/carlosg/parallel-installable: 3/7] tracker-miner-fs: Move nice/sched initialization further up



commit f43e852aa3db711482c6fb0dd7f8750becbbc6ea
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Mar 8 12:06:07 2020 +0100

    tracker-miner-fs: Move nice/sched initialization further up
    
    We do find warnings as we load TrackerDomainOntology first, which
    pulls GFile, which pulls GTask, which pulls threads, which makes
    glib cry. Sigh.

 src/miners/fs/tracker-main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index bf4f860b3..28f4cb88a 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -813,6 +813,9 @@ main (gint argc, gchar *argv[])
        /* Set timezone info */
        tzset ();
 
+       /* This makes sure we don't steal all the system's resources */
+       initialize_priority_and_scheduling ();
+
        /* Translators: this messagge will apper immediately after the
         * usage string - Usage: COMMAND <THIS_MESSAGE>
         */
@@ -846,9 +849,6 @@ main (gint argc, gchar *argv[])
                return EXIT_FAILURE;
        }
 
-       /* This makes sure we don't steal all the system's resources */
-       initialize_priority_and_scheduling ();
-
        connection = g_bus_get_sync (TRACKER_IPC_BUS, NULL, &error);
        if (error) {
                g_critical ("Could not create DBus connection: %s\n",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]