From bf7c1869669b3860fa6597e6b4318ba2c63ae26e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 2 Mar 2015 14:50:17 +0000 Subject: If a non-gz manual is read after a gzipped manual, refrain from throwing a bogus error "wait: No child processes". As reported by Baptiste Daroussin , clearing the state variable curp->child after use was forgotten. --- read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/read.c b/read.c index 75c3b55a..7dabc2e4 100644 --- a/read.c +++ b/read.c @@ -868,6 +868,7 @@ mparse_wait(struct mparse *curp) perror("wait"); exit((int)MANDOCLEVEL_SYSERR); } + curp->child = 0; if (WIFSIGNALED(status)) { mandoc_vmsg(MANDOCERR_FILE, curp, 0, 0, "gunzip died from signal %d", WTERMSIG(status)); -- cgit