Librpc workaround for ONCRPC protocol error in SMS.

This patch causes librpc to abort() when a read() fails on the ONCRPC
device. We're seeing this at bootup when the RIL initializes the WMS
(SMS) service, and we can't get back in sync with the protocol. By
calling abort(), rild will restart and the RIL will work correctly
on the second attempt.

We can remove this after we fix the underlying protocol error, but perhaps
we should keep it in since the original version of the code will
continue on a read() error and corrupt memory, thinking that it
received a new message when the input buffer contains only the
previous message received.

Change-Id: I0deded00f5c38a71aa56ce1859a8fe37d234e11b
This commit is contained in:
Jake Hamby 2010-07-08 13:47:46 -07:00
parent 402876c347
commit d9c81f0dac

Diff Content Not Available