From 17c9c2073a4e07ad26f1c62868805bc8bca494cb Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 3 Dec 2013 13:42:08 +0100 Subject: [PATCH] android: Fix missing failure check in ipc_init If connecting command socket failed daemon should be terminated. --- android/ipc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/ipc.c b/android/ipc.c index 1d369a834..6f940cdb1 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -229,6 +229,8 @@ static gboolean cmd_connect_cb(GIOChannel *io, GIOCondition cond, void ipc_init(void) { cmd_io = connect_hal(cmd_connect_cb); + if (!cmd_io) + raise(SIGTERM); } void ipc_cleanup(void) -- 2.47.3