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



commit b7129a7aa398e5dd566506f5b0076e640d023bd0
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 a7449b187..1a04e3166 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]