summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-07-19 06:05:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-07-19 06:05:16 +0000
commit2911006dcd808278e26b990dd26b268183fc27b4 (patch)
tree987ef2c8066de90b45e419ccceecab93993a392f /mandocdb.c
parent20a972b9c7a4dc0048c55dd8cb3a9bc426793851 (diff)
downloadmandoc-2911006dcd808278e26b990dd26b268183fc27b4.tar.gz
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.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mandocdb.c b/mandocdb.c
index e89dc164..5855e405 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -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);