From 873e211a578d779e8dd7dacaffd311f232ae55d5 Mon Sep 17 00:00:00 2001 From: Young Ik Cho Date: Thu, 11 Apr 2013 21:00:34 +0900 Subject: [PATCH] evade EPERM on SMACK for submode app running check Change-Id: Ief26fbc6d6f1df1471a896143cc9bae38c368864 Signed-off-by: Young Ik Cho --- src/app/FApp_UiAppImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/FApp_UiAppImpl.cpp b/src/app/FApp_UiAppImpl.cpp index b86cd13..8eb7e37 100644 --- a/src/app/FApp_UiAppImpl.cpp +++ b/src/app/FApp_UiAppImpl.cpp @@ -129,7 +129,7 @@ _UiAppImpl::OnService(service_s* service, bool initial) bundle* pBundle = _AppArg::GetBundleFromSvc(service); const int pid = _AppArg::GetCallerPid(pBundle); - if (pid <= 0 || kill(pid, 0) < 0) + if (pid <= 0 || ((kill(pid, 0) < 0) && errno == ESRCH)) { SysLogException(NID_APP, E_SYSTEM, "Caller process %d not exist : terminating %d.", pid, getpid()); _Process::Exit(-1); -- 2.7.4