[tracker/tracker-0.16] tracker-extract-pdf: remove usage of non async-signal safe functions from signal handler



commit d91111b3e4efc869ac8476aa4cde2f948ea2e671
Author: Ralph Boehme <sloowfranklin gmail com>
Date:   Wed Aug 14 16:16:08 2013 +0200

    tracker-extract-pdf: remove usage of non async-signal safe functions from signal handler
    
    Fixes nasty crash that can occur.

 src/tracker-extract/tracker-extract-pdf.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index f68914c..67da9a8 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -463,10 +463,8 @@ extract_content_child_cleanup (int action)
        pid_t child_pid;
        int status;
 
-       g_debug ("Parent: Zombies, say hello to my little friend!");
-       while ((child_pid = waitpid (-1, &status, WNOHANG)) > 0) {
-               g_debug ("Parent:   Zombie %d reaped", child_pid);
-       }
+       while ((child_pid = waitpid (-1, &status, WNOHANG)) > 0)
+               ;
 }
 
 static gchar *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]