[tracker] tracker-extract: _exit() abruptly if cancelled due to pre-unmount
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: _exit() abruptly if cancelled due to pre-unmount
- Date: Tue, 14 Jun 2011 15:36:15 +0000 (UTC)
commit a85cd721e1e9139f158e4373c6aaf88c731d8783
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Jun 14 17:21:13 2011 +0200
tracker-extract: _exit() abruptly if cancelled due to pre-unmount
g_main_loop_quit() docs say it could wait for already dispatched sources,
time consuming extraction tasks in this case. Given that in pre-unmount
situation we prefer fast to orderly, just _exit() here.
src/tracker-extract/tracker-controller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-controller.c b/src/tracker-extract/tracker-controller.c
index 70edf16..9fab743 100644
--- a/src/tracker-extract/tracker-controller.c
+++ b/src/tracker-extract/tracker-controller.c
@@ -288,7 +288,7 @@ cancel_tasks_in_file (TrackerController *controller,
*/
g_message ("Cancelled task ('%s') is currently being processed, quitting",
data->uri);
- g_main_loop_quit (priv->main_loop);
+ _exit (0);
} else {
g_message ("Cancelling not yet processed task ('%s')",
data->uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]