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.

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)

Details

Provenance
desAuthored on May 16 2025, 2:56 PM
Reviewer
ziaee
Differential Revision
D50302: man: Exit cleanly on SIGPIPE.
Parents
rGa02915589dff: traceroute.8: improve the documentation of -P
Branches
Unknown
Tags
Unknown