Reduce process premature death warnings
This commit is contained in:
@@ -303,7 +303,8 @@ class RootServer {
|
|||||||
output.close()
|
output.close()
|
||||||
process.outputStream.close()
|
process.outputStream.close()
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
Logger.me.i("send Shutdown failed", e)
|
// Stream closed caused in NullOutputStream
|
||||||
|
if (e.message != "Stream closed") Logger.me.w("send Shutdown failed", e)
|
||||||
}
|
}
|
||||||
Logger.me.d("Client closed")
|
Logger.me.d("Client closed")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ abstract class IpMonitor {
|
|||||||
} else processLine(it)
|
} else processLine(it)
|
||||||
}
|
}
|
||||||
} catch (_: InterruptedIOException) { } catch (e: IOException) {
|
} catch (_: InterruptedIOException) { } catch (e: IOException) {
|
||||||
if ((e.cause as? ErrnoException)?.errno != OsConstants.EBADF) Timber.w(e)
|
if ((e.cause as? ErrnoException)?.errno != OsConstants.EBADF && e.message != "Stream closed") Timber.w(e)
|
||||||
}
|
}
|
||||||
err.join()
|
err.join()
|
||||||
Timber.d("Monitor process exited with ${process.waitFor()}")
|
Timber.d("Monitor process exited with ${process.waitFor()}")
|
||||||
|
|||||||
Reference in New Issue
Block a user