[tracker/tracker-0.10] tracker-extract: _exit() abruptly if cancelled due to pre-unmount
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract: _exit() abruptly if cancelled due to pre-unmount
- Date: Thu, 16 Jun 2011 16:10:49 +0000 (UTC)
commit db9b1e45bfcc2d28802f5266b80852cda4902e06
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 a26bd1d..e7d4e8e 100644
--- a/src/tracker-extract/tracker-controller.c
+++ b/src/tracker-extract/tracker-controller.c
@@ -287,7 +287,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]