You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
corelens: gracefully handle interrupt and broken pipe
SIGINT and SIGPIPE are handled by Python as exceptions. It's common to
get a SIGINT with a keyboard interrupt, and in these cases the user
typically doesn't want a traceback, they just want to stop corelens. For
broken pipe, this is relatively common for "corelens ... | head -n $num"
commands where a user wants to get just the first few lines. An
exception here would print more than they expect, and would be
unhelpful. Handle both of these so corelens behaves more like other
system utilities.
Signed-off-by: Stephen Brennan <[email protected]>
0 commit comments