Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup manual sigpipe handling in query.rs #11

Open
clux opened this issue Nov 6, 2017 · 0 comments
Open

cleanup manual sigpipe handling in query.rs #11

clux opened this issue Nov 6, 2017 · 0 comments

Comments

@clux
Copy link
Member

clux commented Nov 6, 2017

➜ media-engine git:(coverity) ✗ lal query media-engine | head -n 1
10
thread '

' panicked at 'failed printing to stdout: Broken pipe (os error 32)', ../src/libstd/io/stdio.rs:617
note: Run with RUST_BACKTRACE=1 for a backtrace.
doesn't like pipes

Fixed it locally by emulating the language's fix locally in query.rs. Basically, if we fail to flush, stop writing. Don't think it's needed anywhere else, but the fix is needed in the language really rather than everywhere else. Hopefully the comment will remind me to take it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant