[tracker] Do not make tracker-indexer commit suicide if tracker-extract doesn't get along.
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Do not make tracker-indexer commit suicide if tracker-extract doesn't get along.
- Date: Fri, 24 Apr 2009 07:24:15 -0400 (EDT)
commit c73f47019e09c4fb24ff93c61799a737e48db578
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 17 13:51:58 2009 +0200
Do not make tracker-indexer commit suicide if tracker-extract doesn't get along.
If tracker-extract fails to return the PID. extractor_pid is 0, so if
tracker-indexer tries to kill it afterwards, it ends up killing itself.
---
.../tracker-module-metadata-utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/tracker-indexer/tracker-module-metadata-utils.c b/src/tracker-indexer/tracker-module-metadata-utils.c
index e4f3057..5c62b89 100644
--- a/src/tracker-indexer/tracker-module-metadata-utils.c
+++ b/src/tracker-indexer/tracker-module-metadata-utils.c
@@ -298,6 +298,11 @@ extractor_context_kill (ExtractorContext *context)
{
g_message ("Attempting to kill tracker-extract with SIGKILL");
+ if (context->pid == 0) {
+ g_warning (" No PID for tracker-extract");
+ return;
+ }
+
if (kill (context->pid, SIGKILL) == -1) {
const gchar *str = g_strerror (errno);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]