forked from qt-creator/qt-creator
ProcessReaper: Implement custom terminate for CtrlCStub case
Move CtrlCStub-specific interrupt into ProcessHelper. Amends 7d7e4af3afb5ba9d0ed5210018dd6be67abda469 Change-Id: I5cd9a750c4a89587a874515f752b0144df4b8309 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "processreaper.h"
|
||||
#include "processutils.h"
|
||||
#include "qtcassert.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
@@ -116,8 +117,7 @@ signals:
|
||||
private:
|
||||
void terminate()
|
||||
{
|
||||
// TODO: do a custom terminate here for ctrlCStub
|
||||
m_reaperSetup.m_process->terminate();
|
||||
ProcessHelper::terminateProcess(m_reaperSetup.m_process);
|
||||
QTimer::singleShot(m_reaperSetup.m_timeoutMs, this, &Reaper::handleTerminateTimeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user