Utils: Add the ability to interrupt inferiors via the process stub

This will be handy once we want to debug processes running as root.

The mechanism is the same as for "killProcess", and currently unused.

Change-Id: I2c5e5b77577ca32ed1118fcc81c03c6320db8800
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
hjk
2021-02-16 08:57:08 +01:00
parent f200466066
commit 12a0934830
5 changed files with 27 additions and 0 deletions

View File

@@ -183,6 +183,11 @@ TerminalRunner::TerminalRunner(RunControl *runControl, const Runnable &stubRunna
this, [this] { reportDone(); });
}
void TerminalRunner::interruptProcess()
{
m_stubProc.interruptProcess();
}
void TerminalRunner::start()
{
m_stubProc.setEnvironment(m_stubRunnable.environment);