Skip to content

Commit

Permalink
remove swallowing of ctrl-c
Browse files Browse the repository at this point in the history
No idea why this was added, but it's not necessary for anything I've found.
  • Loading branch information
karlp committed Oct 22, 2011
1 parent 85ff603 commit c37975c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gdbserver/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c37975c

Please sign in to comment.