From: Karl Palsson Date: Sat, 22 Oct 2011 15:53:03 +0000 (+0000) Subject: remove swallowing of ctrl-c X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c37975c15730ac582945ea3ed85ac59284979819;hp=85ff6038050093c1950e0ec69cd597f848bfa4c6;p=fw%2Fstlink remove swallowing of ctrl-c No idea why this was added, but it's not necessary for anything I've found. --- diff --git a/gdbserver/gdb-server.c b/gdbserver/gdb-server.c index 30ee014..e7efbf1 100644 --- a/gdbserver/gdb-server.c +++ b/gdbserver/gdb-server.c @@ -32,12 +32,6 @@ #define FLASH_PAGE_MASK (~((1 << 10) - 1)) #define FLASH_SIZE (FLASH_PAGE * 128) -volatile int do_exit = 0; -void ctrl_c(int sig) -{ - do_exit = 1; -} - static const char hex[] = "0123456789abcdef"; static const char* current_memory_map = NULL; @@ -697,7 +691,6 @@ int serve(stlink_t *sl, int port) { printf("Listening at *:%d...\n", port); - (void) signal (SIGINT, ctrl_c); int client = accept(sock, NULL, NULL); signal (SIGINT, SIG_DFL); if(client < 0) {