Bug 11761 - Broken pipe when paginating bitbake -e
Summary: Broken pipe when paginating bitbake -e
Status: RESOLVED NOTABUG
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Undecided minor
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-07-05 21:32 UTC by Leonardo Sandoval Gonzalez
Modified: 2017-07-06 15:11 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2017-07-05 21:32:11 UTC
If 'less' is quit ('q') in the first page where input comes from bitbake -e, the following error occurs:

$ bitbake -e | less
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe


Seems that the errno.EPIPE should be caught somewhere instead of passing it to the console.
Comment 1 Richard Purdie 2017-07-06 15:11:58 UTC
If less quits, bitbake loses its stdout. Its reasonable it prints a pipe error at this point which is what a standard commandline utility would do. The alternative is to silently swallow an error when stdout has disappeared and we still have output which seems worse to me so I don't think we can improve this as described.