When ANR occurs, AMD removes a process info from the hash table.
Change-Id: Ibc2bc2bf8e20b1060ccbb112fd536082a91d1d00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return G_SOURCE_REMOVE;
ctx->timer = 0;
+ __remove_proc_info(pid);
app_status = _app_status_find_v2(pid);
if (!app_status) {
_W("Failed to find app status. pid(%d)", pid);
- __remove_proc_info(pid);
return G_SOURCE_REMOVE;
}
if (_app_status_get_status(app_status) == STATUS_DYING) {
_W("%d is dying", pid);
- __remove_proc_info(pid);
return G_SOURCE_REMOVE;
}
return G_SOURCE_REMOVE;
}
- __remove_proc_info(pid);
_signal_send_watchdog(pid, SIGKILL);
return G_SOURCE_REMOVE;