From 41776bc79bc20f37b53dd4931fe11e77864114c7 Mon Sep 17 00:00:00 2001 From: Anatolii Nikulin Date: Mon, 31 Oct 2016 11:18:52 +0300 Subject: [PATCH] Fix stopping Web application We send KILL with "owner" id Change-Id: I50b040fcdaa4aa6a372f87a27d59b621719a8f2e Signed-off-by: Anatolii Nikulin --- daemon/utils.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/daemon/utils.c b/daemon/utils.c index 5669986..719287b 100644 --- a/daemon/utils.c +++ b/daemon/utils.c @@ -319,11 +319,14 @@ void kill_app_web(const char *app_id) while (ret == -1 && errno == EINTR); return; } else { /* child */ - execl(APP_LAUNCHER_PATH, - APP_LAUNCHER_NAME, - "-k", - app_id, - NULL); + char *web_argv[] = { + APP_LAUNCHER_NAME, + "-k", + (char *)app_id, + NULL + }; + + exec_with_user(EXEC_USER, APP_LAUNCHER_PATH, web_argv); /* FIXME: If code flows here, it deserves greater attention */ LOGE("Cannot run exec!\n"); _Exit(EXIT_FAILURE); -- 2.7.4