Commit 7844e3ea authored by Zeeshan Ali's avatar Zeeshan Ali

gst-inspect: Dont print errors on IO flush failure

In most cases, the pager would have been gone with it's end of the pipe
closed so flushing changes in this case will fail and attempting to write
to the stderr will result in a SIGILL.
parent 476fc674
......@@ -33,12 +33,8 @@ impl PipedStdio {
impl Drop for PipedStdio {
fn drop(&mut self) {
if let Err(e) = stdout().flush() {
eprintln!("{}", e);
if let Err(e) = stderr().flush() {
eprintln!("{}", e);
match File::open("/dev/null") {
Ok(null) => {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment