RIL occasionally exits from its event loop due to race condition
upon phone process crash. And there is no recovery mechanism
provided and causing permanent cellular data loss until reset.
The solution is simply to kill rild process to start over when
event loop exits for some reason.
Bug:
5428218
Change-Id: I88a9b8e966158f0f943fe3d189d91b1352481d9b
// Only returns on error
ril_event_loop();
LOGE ("error in event_loop_base errno:%d", errno);
+ // kill self to restart on error
+ kill(0, SIGKILL);
return NULL;
}