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 | bc801ebe2f90cc370e6bc0904ff6e813e5c94ce6 (patch) | |
tree | 14933bd5af1c79557e0bcbcb32c77b3ce21dbeb7 | |
parent | e14bca4c9bbeb7cad3aa999d589e1fc15542b414 (diff) | |
download | mandoc-bc801ebe2f90cc370e6bc0904ff6e813e5c94ce6.tar.gz mandoc-bc801ebe2f90cc370e6bc0904ff6e813e5c94ce6.tar.zst mandoc-bc801ebe2f90cc370e6bc0904ff6e813e5c94ce6.zip |
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 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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)); |