Add showing log only when process termination is failed 98/145698/2 accepted/tizen/unified/20170825.163334 submit/tizen/20170825.032149
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 23 Aug 2017 09:37:30 +0000 (18:37 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 23 Aug 2017 09:39:57 +0000 (09:39 +0000)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Id4747a6b8cbad0a8d62c90e908a763e263305c72

server/internal-encryption.cpp

index a89320c..ae410c5 100644 (file)
@@ -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));
+               }
     }
 }