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

Function awaitTool

app/src/Licensing/MachineID.cpp:55–61  ·  view source on GitHub ↗

* @brief Waits for a fingerprint helper, killing it if it wedges; the timeout * must clear the tool's worst case so a slow start cannot change the fingerprint. */

Source from the content-addressed store, hash-verified

53 * must clear the tool's worst case so a slow start cannot change the fingerprint.
54 */
55static void awaitTool(QProcess& process, int timeoutMs = 3000)
56{
57 if (!process.waitForFinished(timeoutMs)) {
58 process.kill();
59 process.waitForFinished(500);
60 }
61}
62
63#if defined(Q_OS_LINUX)
64/**

Callers 4

readLinuxIdFunction · 0.85
readMacIdFunction · 0.85
readWindowsIdFunction · 0.85
readBsdIdFunction · 0.85

Calls 1

killMethod · 0.45

Tested by

no test coverage detected