MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / kill

Method kill

app/src/API/ProcessLauncher.cpp:215–227  ·  view source on GitHub ↗

* @brief Terminates a single managed process; returns false when the id is unknown. */

Source from the content-addressed store, hash-verified

213 * @brief Terminates a single managed process; returns false when the id is unknown.
214 */
215bool API::ProcessLauncher::kill(int processId)
216{
217 auto* process = m_processes.take(processId);
218 if (!process)
219 return false;
220
221 process->terminate();
222 if (!process->waitForFinished(kTerminateGraceMs))
223 process->kill();
224
225 process->deleteLater();
226 return true;
227}
228
229/**
230 * @brief Terminates every managed process (terminate, then kill on grace-period timeout).

Callers 6

doCloseMethod · 0.45
killAllMethod · 0.45
awaitToolFunction · 0.45
stopPluginMethod · 0.45
stopAllPluginsMethod · 0.45

Calls

no outgoing calls

Tested by 1