From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 2efcf20a; for ; Mon, 2 Mar 2015 09:50:47 -0500 (EST) Date: Mon, 2 Mar 2015 09:50:47 -0500 (EST) Message-Id: <6003567606622099313.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: If a non-gz manual is read after a gzipped manual, refrain from X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/read.c,v retrieving revision 1.128 retrieving revision 1.129 diff -Lread.c -Lread.c -u -p -r1.128 -r1.129 --- read.c +++ 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)); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv