diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-19 06:05:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-19 06:05:16 +0000 |
commit | f0143f309111bca83659f897fa5c7c42548890ed (patch) | |
tree | a4e4f250b02548ce4781417e928a293aee002be7 /main.c | |
parent | 0c627ea8c3cc862ae75011fd19486724efdf240b (diff) | |
download | mandoc-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 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.241 2015/07/19 00:07:42 schwarze Exp $ */ +/* $Id: main.c,v 1.242 2015/07/19 06:05:16 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -458,10 +458,6 @@ main(int argc, char *argv[]) passthrough(resp->file, fd, conf.output.synopsisonly); - rctmp = mparse_wait(curp.mp); - if (rc < rctmp) - rc = rctmp; - if (argc > 1 && curp.outtype <= OUTT_UTF8) ascii_sepline(curp.outdata); } |