forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user