Unverified Commit b84f8e89 authored by Mygod's avatar Mygod Committed by GitHub

Suppress kill failures on old platforms

parent 64b2dfb7
......@@ -94,7 +94,9 @@ class GuardedProcessPool(private val onFatal: suspend (IOException) -> Unit) : C
try {
Os.kill(pid.get(process) as Int, OsConstants.SIGTERM)
} catch (e: ErrnoException) {
if (e.errno != OsConstants.ESRCH) throw e
if (e.errno != OsConstants.ESRCH) Crashlytics.logException(e)
} catch (e: ReflectiveOperationException) {
Crashlytics.logException(e)
}
if (withTimeoutOrNull(500) { exitChannel.receive() } != null) return@withContext
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment