Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information