From 77b2f360ee6b9eb35bbf2418ed818c4e981fded1 Mon Sep 17 00:00:00 2001 From: Sungbae Yoo Date: Wed, 23 Aug 2017 18:37:30 +0900 Subject: [PATCH 1/1] Add showing log only when process termination is failed Signed-off-by: Sungbae Yoo Change-Id: Id4747a6b8cbad0a8d62c90e908a763e263305c72 --- server/internal-encryption.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); + } } } -- 2.7.4