source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: If a non-gz manual is read after a gzipped manual, refrain  from
@ 2015-03-02 14:50 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-03-02 14:50 UTC (permalink / raw)
  To: source

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 <bapt at FreeBSD dot org>, 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-02 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 14:50 mdocml: If a non-gz manual is read after a gzipped manual, refrain from schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).