From f0143f309111bca83659f897fa5c7c42548890ed Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 19 Jul 2015 06:05:16 +0000 Subject: Do not fork and exec gunzip(1), just link with libz instead. As discussed with deraadt@, that's cleaner and will help tame(2). Something like this was also suggested earlier by bapt at FreeBSD. Minus 50 lines of code, deleting one interface function (mparse_wait), no functional change intended. --- mandocdb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mandocdb.c') diff --git a/mandocdb.c b/mandocdb.c index 34d5e464..44cf0128 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.194 2015/04/23 16:17:44 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.195 2015/07/19 06:05:16 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011-2015 Ingo Schwarze @@ -1246,10 +1246,6 @@ mpages_merge(struct mparse *mp) mlink = mpage->mlinks; nextpage: - if (mparse_wait(mp) != MANDOCLEVEL_OK) { - exitcode = (int)MANDOCLEVEL_SYSERR; - say(mlink->file, "&wait gunzip"); - } ohash_delete(&strings); ohash_delete(&names); mpage = ohash_next(&mpages, &pslot); -- cgit v1.2.3