From 51c928a8ef589c722c8342769a491556c25d67c4 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Wed, 29 Jul 2009 11:43:16 +0200 Subject: [PATCH] Fix: kill zombies without breaking b963c2827fe5491e7073de4e829ac6686f148d8f --- src/conky.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conky.c b/src/conky.c index cd29ba75..4bc7ec0b 100644 --- a/src/conky.c +++ b/src/conky.c @@ -675,6 +675,7 @@ FILE* pid_popen(const char *command, const char *mode, pid_t *child) { return NULL; } else if(*child > 0) { close(childend); + waitpid(*child, NULL, WNOHANG); } else { //don't read from both stdin and pipe or write to both stdout and pipe if(childend == ends[0]) {