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
Signed by: redoste
SSH Key Fingerprint: SHA256:Y1z/cbVN8OVoFPXzVgklSqoZnyQQ/PQM8YwhMtxMk90
1 changed files with 1 additions and 1 deletions

View File

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