[tracker-miners/wip/carlosg/graphs: 4/18] tracker-extract: Set up I/O and CPU priorities earlier even



commit 899b4c3a8e8c23dff8457f4d81573cf79f1fd305
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 7fce181d0..334e96626 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -289,6 +289,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"));
@@ -335,9 +338,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]