aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitf0143f309111bca83659f897fa5c7c42548890ed (patch)
treea4e4f250b02548ce4781417e928a293aee002be7 /mandocdb.c
parent0c627ea8c3cc862ae75011fd19486724efdf240b (diff)
downloadmandoc-f0143f309111bca83659f897fa5c7c42548890ed.tar.gz
mandoc-f0143f309111bca83659f897fa5c7c42548890ed.tar.zst
mandoc-f0143f309111bca83659f897fa5c7c42548890ed.zip
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.c6
1 files changed, 1 insertions, 5 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);