tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Baptiste Daroussin <bapt@FreeBSD.org>
To: tech@mdocml.bsd.lv
Subject: [PATCH] Fix "Wait: No Child Process"
Date: Mon, 2 Mar 2015 11:55:19 +0100	[thread overview]
Message-ID: <20150302105519.GO13897@ivaldir.etoilebsd.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 130 bytes --]

Hi,

Here is a small patch to fix mandoc complaining about no child process when .gz
manpages are being read.

Best regards,
Bapt

[-- Attachment #1.2: read.c.diff --]
[-- Type: text/x-diff, Size: 421 bytes --]

Index: read.c
===================================================================
RCS file: /cvs/mdocml/read.c,v
retrieving revision 1.128
diff -u -r1.128 read.c
--- read.c	23 Feb 2015 13:31:04 -0000	1.128
+++ read.c	2 Mar 2015 10:50:12 -0000
@@ -878,6 +878,7 @@
 		    "gunzip failed with code %d", WEXITSTATUS(status));
 		return(MANDOCLEVEL_ERROR);
 	}
+	curp->child = 0;
 	return(MANDOCLEVEL_OK);
 }
 

[-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --]

             reply	other threads:[~2015-03-02 10:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 10:55 Baptiste Daroussin [this message]
2015-03-02 14:56 ` Ingo Schwarze
2015-03-09 21:04   ` Kristaps Dzonsons
2015-03-10  3:23     ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150302105519.GO13897@ivaldir.etoilebsd.net \
    --to=bapt@freebsd.org \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).