From: Sungbae Yoo Date: Wed, 23 Aug 2017 09:37:30 +0000 (+0900) Subject: Add showing log only when process termination is failed X-Git-Tag: submit/tizen/20170825.032149^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77b2f360ee6b9eb35bbf2418ed818c4e981fded1;p=platform%2Fcore%2Fsecurity%2Fode.git Add showing log only when process termination is failed Signed-off-by: Sungbae Yoo Change-Id: Id4747a6b8cbad0a8d62c90e908a763e263305c72 --- diff --git a/server/internal-encryption.cpp b/server/internal-encryption.cpp index a89320c..ae410c5 100644 --- a/server/internal-encryption.cpp +++ b/server/internal-encryption.cpp @@ -82,7 +82,9 @@ void killDependedProcesses() for (pid_t pid : runtime::FileUser::getList(INTERNAL_PATH, true)) { INFO(SINK, "Close process - " + std::to_string(pid)); int ret = ::kill(pid, SIGKILL); - INFO(SINK, "Ret - " + std::to_string(ret)); + if (ret != 0) { + ERROR(SINK, "Failed to kill process " + std::to_string(pid)); + } } }