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));
+ }
}
}