Page MenuHomeFreeBSD

man: Exit cleanly on SIGPIPE.
ClosedPublic

Authored by des on May 11 2025, 10:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 29, 1:40 AM
Unknown Object (File)
Wed, Apr 29, 1:32 AM
Unknown Object (File)
Tue, Apr 28, 12:11 PM
Unknown Object (File)
Wed, Apr 22, 6:59 PM
Unknown Object (File)
Tue, Apr 21, 8:02 PM
Unknown Object (File)
Mon, Apr 20, 6:15 AM
Unknown Object (File)
Mon, Apr 20, 5:03 AM
Unknown Object (File)
Sun, Apr 19, 7:55 PM
Subscribers

Details

Summary

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.

Fixes: 14a5c1068d37, a85d870007e7
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable