Skip to content

Commit

Permalink
Merge pull request #1 from greg-elmi/greg-elmi-patch-1
Browse files Browse the repository at this point in the history
Allow usb-mitm to quit on Ctrl+C
  • Loading branch information
greg-elmi committed Aug 17, 2020
2 parents 6a04224 + e4b74a5 commit ab3234d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/usb-mitm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void handle_signal(int signum)
fprintf(stderr, "Exiting\n");
memset(&action, 0, sizeof(struct sigaction));
action.sa_handler = SIG_DFL;
sigaction(SIGINT, &action, NULL);
sigaction(SIGTERM, &action, NULL);
break;
case SIGHUP:
Expand Down

0 comments on commit ab3234d

Please sign in to comment.