forked from qt-creator/qt-creator
Get rid of no-op calls to QtcProcess::kill()
Leave the work for implicit ProcessReaper. Change-Id: Ie01c4e996fda18b7cee77851394174556c6f3857 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -80,15 +80,7 @@ PerfTracePointDialog::PerfTracePointDialog() :
|
||||
? QLatin1String("pkexec") : QLatin1String("n.a."));
|
||||
}
|
||||
|
||||
PerfTracePointDialog::~PerfTracePointDialog()
|
||||
{
|
||||
if (m_process && m_process->state() != QProcess::NotRunning) {
|
||||
QtcProcess *process = m_process.release();
|
||||
connect(process, &QtcProcess::finished, process, &QObject::deleteLater);
|
||||
process->kill();
|
||||
QTimer::singleShot(10000, process, &QObject::deleteLater);
|
||||
}
|
||||
}
|
||||
PerfTracePointDialog::~PerfTracePointDialog() = default;
|
||||
|
||||
void PerfTracePointDialog::runScript()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user