Bug 279542 - mandoc emits error after exiting pager
Summary: mandoc emits error after exiting pager
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-05 12:59 UTC by Ed Maste
Modified: 2024-10-01 01:15 UTC (History)
2 users (show)

See Also:
linimon: mfc-stable14?
linimon: mfc-stable13?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2024-06-05 12:59:22 UTC
Steps to reproduce:

1. man rc.conf
2. press space to advance to next page (59 rows on my display)
3. press Q to exit pager

Observe error:

mandoc: <stdin>: SYSERR: write: Broken pipe
mandoc: see above the output for SYSERR messages

On main at b667c40f9ff6
Comment 1 Alexander Ziaee freebsd_triage 2024-06-10 05:11:56 UTC
I have proposed a fix for this.

[0] https://github.com/freebsd/freebsd-src/pull/1283

Thanks @emaste!
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-28 00:36:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a85d870007e7dd94242a2084dbb750438332ac1e

commit a85d870007e7dd94242a2084dbb750438332ac1e
Author:     Alexander Ziaee <concussious@runbox.com>
AuthorDate: 2024-06-10 04:04:51 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-28 00:34:33 +0000

    man.sh: revert trapping SIGPIPE

    PR:             279542
    Fixes:          14a5c1068d37
    Reported by:    emaste
    Reviewed by: imp, emaste, jilles
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1283

 usr.bin/man/man.sh | 3 ---
 1 file changed, 3 deletions(-)
Comment 3 Sean Farley freebsd_committer freebsd_triage 2024-07-20 03:34:06 UTC
It would be great if this made it into 14-STABLE too.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2024-10-01 01:15:55 UTC
^Triage: assign to committer for MFC review.