Optimization #2878
closedCatch control-c (KeyboardInterrupt) and exit cleanly.
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.
Updated by Shivani Bhardwaj almost 6 years ago
- Status changed from New to Feedback
- Assignee deleted (
Shivani Bhardwaj)
Updated by Saira Hussain over 5 years ago
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 ;)
Updated by Saira Hussain over 5 years ago
I did sent a PR [here](https://github.com/OISF/suricata-update/pull/117), happy waiting for reviews!
Updated by Saira Hussain over 5 years ago
Saira Hussain wrote:
I did sent a PR here: https://github.com/OISF/suricata-update/pull/117, happy waiting for reviews!
Updated by Shivani Bhardwaj over 5 years ago
- Status changed from Feedback to Resolved
- Target version set to TBD
Updated by Shivani Bhardwaj over 5 years ago
Updated by Shivani Bhardwaj over 5 years ago
- Status changed from Resolved to Closed
Updated by Jason Ish over 5 years ago
- Target version changed from TBD to 1.1.0rc1