HomeFreeBSD

man: Exit cleanly on SIGPIPE.

Description

man: Exit cleanly on SIGPIPE.

The first attempt at addressing this simply suppressed SIGPIPE, which
resulted in mandoc printing out error messages instead. This was then
reverted, but the pipefail was (correctly) left in, so man still
returned a nonzero exit code if you quit a page before the end.

Approved by: re (cperciva)
PR: 223516, 279542
Fixes: 14a5c1068d37, a85d870007e7
MFC after: 1 week
Reviewed by: ziaee, kevans
Differential Revision: https://reviews.freebsd.org/D50302

(cherry picked from commit fbaba7aa432257a9b787edc6bfdbfbde94f2e0d5)
(cherry picked from commit 2f99190a9234b119bcec1e4645e87d4e6016e5a5)

Details

Provenance
desAuthored on May 16 2025, 2:56 PM
Reviewer
ziaee
Differential Revision
D50302: man: Exit cleanly on SIGPIPE.
Parents
rG6b6d6448feff: vfs: vntblinit(): Raise default 'kern.maxvnodes' higher than 'kern.maxfiles'
Branches
Unknown
Tags
Unknown