Bug 279542

Summary: mandoc emits error after exiting pager
Product: Base System Reporter: Ed Maste <emaste>
Component: miscAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me CC: scf, vedran, ziaee
Priority: --- Flags: linimon: mfc-stable14?
linimon: mfc-stable13?
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223516

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.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-11-13 04:56:57 UTC
A commit in branch stable/14 references this bug:

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

commit 5d3100f95bc3558e12185a8c11e1d5f2a42f2965
Author:     Alexander Ziaee <concussious@runbox.com>
AuthorDate: 2024-06-10 04:04:51 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-13 04:53:43 +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

    (cherry picked from commit a85d870007e7dd94242a2084dbb750438332ac1e)

 usr.bin/man/man.sh | 3 ---
 1 file changed, 3 deletions(-)