Actions
Optimization #2878
closed
JI
CT
Catch control-c (KeyboardInterrupt) and exit cleanly.
Optimization #2878:
Catch control-c (KeyboardInterrupt) and exit cleanly.
Effort:
low
Difficulty:
low
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.
Actions