mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
c4ba46dead
commit
89a66a0457
@@ -37,4 +37,7 @@ while [[ $i -lt ${#args[*]} ]]; do
|
||||
((i = i + 1))
|
||||
done
|
||||
|
||||
log_must eval "arc_summary.py | head > /dev/null"
|
||||
log_must eval "arc_summary.py | head -1 > /dev/null"
|
||||
|
||||
log_pass "arc_summary.py generates output and doesn't return an error code"
|
||||
|
||||
Reference in New Issue
Block a user