From d9c81f0dacd16aa5a32d4ee9be5fc237180920c3 Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Thu, 8 Jul 2010 13:47:46 -0700 Subject: [PATCH] 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