[clang] LLVM ERROR: IO failure on output stream: Broken pipe with `--help` piped to `less(1)`
Open
clang:driver
platform:linux
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Consider the following:
```
$ clang --help | less
```
`clang` successfully pipes the output to `less`. If I either exit the pager or partially scroll the output and then exit, I get
```
LLVM ERROR: IO failure on output stream: Broken pipe
```
The only case in which this doesn't happen is if I scroll to the very bottom of the output and then exit the pager.
OS: Fedora Linux 43 on x86-64
Clang: 21.1.7 (Fedora 21.1.7-1.fc43) from the official Fedora repository
Contributor guide
Assessment
This issue has not been assessed yet.