summaryrefslogtreecommitdiffstats
path: root/libril
diff options
context:
space:
mode:
Diffstat (limited to 'libril')
-rw-r--r--libril/ril.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index dec5507..7998356 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -2609,6 +2609,8 @@ eventLoop(void *param) {
// 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;
}