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



commit c7853d9a492fff68527c859915267f4928f36c1a
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]