Diff between 058537f9aa358a1340ac586dddd8a04ea30a9edc and 85556b7d32818eab6f7c4b74d4b5746d183bb70d
Changed Files
| File | Additions | Deletions | Status |
| android/hal-ipc.c | +7 | -2 | modified |
Full Patch
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index 16f2bd3..f753f10 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -88,8 +88,13 @@ static void *notification_handler(void *data)
}
/* socket was shutdown */
- if (ret == 0)
- break;
+ if (ret == 0) {
+ if (cmd_sk == -1)
+ break;
+
+ error("Notification socket closed, aborting");
+ exit(EXIT_FAILURE);
+ }
if (ret < (ssize_t) sizeof(*hal_msg)) {
error("Too small notification (%zd bytes), aborting",