* @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. */
| 53 | * must clear the tool's worst case so a slow start cannot change the fingerprint. |
| 54 | */ |
| 55 | static 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 | /** |
no test coverage detected