remove swallowing of ctrl-c
authorKarl Palsson <karlp@tweak.net.au>
Sat, 22 Oct 2011 15:53:03 +0000 (15:53 +0000)
committerKarl Palsson <karlp@tweak.net.au>
Sat, 22 Oct 2011 15:53:03 +0000 (15:53 +0000)
No idea why this was added, but it's not necessary for anything I've found.

gdbserver/gdb-server.c

index 30ee01483554b85afd8783fb01b050c279cb5628..e7efbf15bca8aef35ddce8d13aeb9f43b059e5a3 100644 (file)
 #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) {