diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2022-12-14 12:37:34 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2022-12-15 11:34:59 +0000 |
commit | 371e674967af97cf28e2425a0b98b80a87159f09 (patch) | |
tree | de4c65b87ba6e228369bab1e7dd4dfc3bc2dc564 /src/plugins/git/gerrit/gerritplugin.cpp | |
parent | 3a90977da0e35429c953990c8dcee3ae5b9db418 (diff) | |
download | qt-creator-371e674967af97cf28e2425a0b98b80a87159f09.tar.gz |
Git/VCS: Use ctrlc stub for process execution
This ensures that child processes are also terminated.
Required specifically for Git on Windows, when running in cmd directory,
which spawns a child process for usr/bin/git. On this case, if git takes
long to finish and is aborted while running, the main process was killed
as expected, but the child process remained alive.
Task-number: QTCREATORBUG-27567
Change-Id: I40271eb42cfaefd81f2fe5af138254ab0a2c8da8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index a3ec892e0c..9c0a68ee94 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -119,6 +119,7 @@ FetchContext::FetchContext(const QSharedPointer<GerritChange> &change, , m_server(server) , m_state(FetchState) { + m_process.setUseCtrlCStub(true); connect(&m_process, &QtcProcess::done, this, &FetchContext::processDone); connect(&m_process, &QtcProcess::readyReadStandardError, this, &FetchContext::processReadyReadStandardError); |