~oisf/suricata-update-git/suricata-update-git

Viewing all changes in revision 192.

  • Committer: Shivani Bhardwaj
  • Author(s): Vrinda Narayan
  • Date: 2019-08-05 14:22:51 UTC
  • Revision ID: git-v1:9bc790115a4cdaf56740d2596088da4663c7c9d6
Catch Keyboard Interrupt and exit cleanly.

Optimization #2878 https://redmine.openinfosecfoundation.org/issues/2878
Can be done by importing python library signal, and defining a function
signal_handler which will print a message if keyboard interrupt is
detected and exit the program.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: