diff options
author | hjk <hjk@qt.io> | 2021-12-02 09:10:05 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-12-02 09:33:17 +0000 |
commit | e1370a01ff14b71adc9d601be6621851be2ac357 (patch) | |
tree | deadd230d29412b3ee60551c0519c91fbd0cf8ac | |
parent | 26ba5bdb0cbe69c2b51f2e00dd70f56932feffb3 (diff) |
Debugger: Fix interrupting via console
Amends 89646aadce.
Change-Id: Ibb644dc8897a967bd691155fe5be2eb2165b01f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r-- | src/libs/utils/process_stub_unix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/utils/process_stub_unix.c b/src/libs/utils/process_stub_unix.c index 856efa26af..1cb3e8aa26 100644 --- a/src/libs/utils/process_stub_unix.c +++ b/src/libs/utils/process_stub_unix.c @@ -325,6 +325,13 @@ int main(int argc, char *argv[]) kill(chldPid, SIGKILL); } break; + case 'i': + if (chldPid > 0) { + int res = kill(chldPid, SIGINT); + if (res) + perror("Stub could not interrupt inferior"); + } + break; case 'c': { int res = write(blockingPipe[1], &c, 1); if (res < 0) |