[tracker-miners/wip/carlosg/split-dataobject-informationelement: 4/6] tracker-extract: Set up I/O and CPU priorities earlier even



commit 72da874f5b27b5697880d7306566323e87b9ed05
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 23 17:37:13 2020 +0200

    tracker-extract: Set up I/O and CPU priorities earlier even
    
    In master we are still doing this too late (after GFile is poked,
    threads created, etc). Make it even earlier to avoid GLib critical
    warnings.

 src/tracker-extract/tracker-main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index 6839cde24..0b75060a6 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -300,6 +300,9 @@ main (int argc, char *argv[])
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
 
+       /* This makes sure we don't steal all the system's resources */
+       initialize_priority_and_scheduling ();
+
        /* Translators: this message will appear immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new (_("— Extract file meta data"));
@@ -346,9 +349,6 @@ main (int argc, char *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]