From bc801ebe2f90cc370e6bc0904ff6e813e5c94ce6 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/read.c b/read.c index 3fbedc81..0b4caa05 100644 --- a/read.c +++ b/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.128 2015/02/23 13:31:04 schwarze Exp $ */ +/* $Id: read.c,v 1.129 2015/03/02 14:50:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -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 v1.2.3-56-ge451