if (locked != 0) // empty or used by other thread. it would be same client, but it's busy
continue;
- TRACE_DEBUG("locked slot:%d", i);
+ TRACE_INFO("locked slot:%d", i);
if (locked == 0 && clients[i].thread == 0) { // this slot has run without the client
if (clients[i].pkgname != NULL) {
// check package name.
- TRACE_DEBUG("check client[%s] slot:%d", clients[i].pkgname, i);
+ TRACE_INFO("check client[%s] slot:%d", clients[i].pkgname, i);
if (strcmp(clients[i].pkgname, pkgname) == 0) {
TRACE_SECURE_INFO("update client[%s] slot:%d pid:%d sock:%d",
pkgname, i, credential.pid, clientfd);
__dp_db_free_client_manager();
// kill other clients
- TRACE_DEBUG("try to deallocate the resources for all clients");
+ TRACE_INFO("try to deallocate the resources for all clients");
for (int i = 0; i < DP_MAX_CLIENTS; i++) {
int locked = CLIENT_MUTEX_TRYLOCK(&g_dp_client_slots[i].mutex);
if (locked == EBUSY) { // already locked