HomeFreeBSD

Handle broken pipes in arc_summary

Description

Handle broken pipes in arc_summary

Using a command similar to 'arc_summary.py | head' causes
a broken pipe exception. Gracefully exit in the case of a
broken pipe in arc_summary.py.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6965
Closes #6969

Details

Provenance
Giuseppe Di Natale <dinatale2@users.noreply.github.com>Authored on Dec 19 2017, 9:19 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 19 2017, 9:19 PM
Parents
rGc4ba46deade0: Handle invalid options in arc_summary
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG89a66a0457cd: Handle broken pipes in arc_summary (authored by Giuseppe Di Natale <dinatale2@users.noreply.github.com>).Dec 19 2017, 9:19 PM