Merge pull request #1847 from theopolis/end_shell

Exit shell with CTRL+C
This commit is contained in:
Teddy Reed 2016-02-11 22:29:04 -08:00
commit 1bd518ec09

View File

@ -663,8 +663,10 @@ static void output_csv(struct callback_data *p, const char *z, int bSep) {
/* /*
** This routine runs when the user presses Ctrl-C ** This routine runs when the user presses Ctrl-C
*/ */
static void interrupt_handler(int NotUsed) { static void interrupt_handler(int signal) {
UNUSED_PARAMETER(NotUsed); if (signal == SIGINT) {
osquery::shutdown(130);
}
seenInterrupt = 1; seenInterrupt = 1;
} }
#endif #endif