Merge branch 'master' of git.omp.am:/home/omp/git/conky
authorCesare Tirabassi <norsetto@ubuntu.com>
Wed, 29 Jul 2009 16:04:57 +0000 (18:04 +0200)
committerCesare Tirabassi <norsetto@ubuntu.com>
Wed, 29 Jul 2009 16:04:57 +0000 (18:04 +0200)
src/conky.c

index cd29ba7..4bc7ec0 100644 (file)
@@ -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]) {