Project

General

Profile

Actions

Optimization #2878

closed

Catch control-c (KeyboardInterrupt) and exit cleanly.

Added by Jason Ish over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Low
Target version:
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

Also available in: Atom PDF