Optimization #2878
closed
Catch control-c (KeyboardInterrupt) and exit cleanly.
Added by Jason Ish almost 6 years ago.
Updated over 5 years ago.
Label:
Beginner, Outreachy
Description
Right now if you hit control-c, suricata-update will exit (as expected) but display a traceback of what was currently being executed. This could be made more friendly by catching the "KeyboardInterrupt" and simply displaying a message like:
Program interrupted by keyboard, aborting.
But still exit with an error code 1.
- Status changed from New to Feedback
- Assignee deleted (
Shivani Bhardwaj)
Jason Ish wrote:
Right now if you hit control-c, suricata-update will exit (as expected) but display a traceback of what was currently being executed. This could be made more friendly by catching the "KeyboardInterrupt" and simply displaying a message like:
[...]
But still exit with an error code 1.
I would like to get this ticket for my Outreachy approval stage ;)
- Assignee set to Community Ticket
- Status changed from Feedback to Resolved
- Target version set to TBD
- Status changed from Resolved to Closed
- Target version changed from TBD to 1.1.0rc1
Also available in: Atom
PDF