[tracker-miners/wip/carlosg/parallel-installable: 36/41] tracker-miner-fs: Move nice/sched initialization further up
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/parallel-installable: 36/41] tracker-miner-fs: Move nice/sched initialization further up
- Date: Sun, 5 Apr 2020 17:22:18 +0000 (UTC)
commit 7489274a7a3ae3a2922357ef47aaf2265e635a6b
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]