CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2015/03/09 21:00:48
Modified files:
usr.bin/mandoc : main.c
Log message:
Fix a regression caused in rev. 1.118, reported by kristaps@:
When using a pager and the first manual shown is gzip'ed,
the gunzip(1) process ended up as a child of the pager process
such that the man(1) process couldn't wait for it, preventing
proper display of the manual.
Solve this by making the pager a child of the man(1) process
(instead of the other way round), which requires being a bit
more careful about properly closing file descriptors after use
and waiting for the pager before exiting man(1).