Add showing log only when process termination is failed
[platform/core/security/ode.git] / 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));
+               }
     }
 }