mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
Merge pull request #1847 from theopolis/end_shell
Exit shell with CTRL+C
This commit is contained in:
commit
1bd518ec09
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user