diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-03-02 14:50:17 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-03-02 14:50:17 +0000 |
commit | bf7c1869669b3860fa6597e6b4318ba2c63ae26e (patch) | |
tree | 2a36d0eb5c79e53fb21405081a9c01aa52d937a2 | |
parent | 9db529ea6c2a10761e905b75074060e913316170 (diff) | |
download | mandoc-bf7c1869669b3860fa6597e6b4318ba2c63ae26e.tar.gz |
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.
-rw-r--r-- | read.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |