gdb: ignore SIGINT from the bridge when gdb is in foreground

^C can be used within gdb to break a running target, handeling it from
the bridge would kill the connection
This commit is contained in:
redoste 2024-03-31 18:23:52 +02:00
parent d5697e6add
commit 4d664f9e05
No known key found for this signature in database

View file

@ -228,7 +228,7 @@ int main(int argc, char **argv)
goto end; goto end;
struct sigaction action = { struct sigaction action = {
.sa_handler = SIGINT_SIGCHLD_handler, .sa_handler = opts.bridge_only ? SIGINT_SIGCHLD_handler : SIG_IGN,
}; };
sigaction(SIGINT, &action, NULL); sigaction(SIGINT, &action, NULL);