From: discomfitor Date: Wed, 21 Dec 2011 10:07:07 +0000 (+0000) Subject: provide slightly more useful dbg info with new kill api X-Git-Tag: build/2012-07-04.173327~551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ef2ff99eeb8e9afbbf542ba37c83943b591a3a6;p=profile%2Fivi%2Fecore.git provide slightly more useful dbg info with new kill api git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66438 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 7373f00..6257d23 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -984,12 +984,13 @@ ecore_con_event_server_del(Ecore_Con_Server *svr) { Ecore_Con_Event_Server_Del *e; + svr->delete_me = EINA_TRUE; + INF("svr %p is dead", svr); e = ecore_con_event_server_del_alloc(); EINA_SAFETY_ON_NULL_RETURN(e); svr->event_count = eina_list_append(svr->event_count, e); _ecore_con_server_timer_update(svr); - svr->delete_me = EINA_TRUE; e->server = svr; if (svr->ecs) { @@ -1074,6 +1075,8 @@ ecore_con_event_client_del(Ecore_Con_Client *cl) Ecore_Con_Event_Client_Del *e; if (!cl) return; + cl->delete_me = EINA_TRUE; + INF("cl %p is dead", cl); e = ecore_con_event_client_del_alloc(); EINA_SAFETY_ON_NULL_RETURN(e); cl->event_count = eina_list_append(cl->event_count, e); @@ -1081,7 +1084,6 @@ ecore_con_event_client_del(Ecore_Con_Client *cl) cl->host_server->event_count = eina_list_append(cl->host_server->event_count, e); _ecore_con_cl_timer_update(cl); e->client = cl; - cl->delete_me = EINA_TRUE; ecore_event_add(ECORE_CON_EVENT_CLIENT_DEL, e, (Ecore_End_Cb)_ecore_con_event_client_del_free, cl->host_server); _ecore_con_event_count++; @@ -1255,10 +1257,11 @@ _ecore_con_server_free(Ecore_Con_Server *svr) static void _ecore_con_client_kill(Ecore_Con_Client *cl) { - if (!cl->delete_me) + if (cl->delete_me) + DBG("Multi kill request for client %p", cl); + else ecore_con_event_client_del(cl); INF("Lost client %s", (cl->ip) ? cl->ip : ""); - INF("cl %p is dead", cl); if (cl->fd_handler) ecore_main_fd_handler_del(cl->fd_handler); @@ -1320,10 +1323,11 @@ _ecore_con_client_free(Ecore_Con_Client *cl) void _ecore_con_server_kill(Ecore_Con_Server *svr) { - if (!svr->delete_me) + if (svr->delete_me) + DBG("Multi kill request for svr %p", svr); + else ecore_con_event_server_del(svr); - INF("svr %p is dead", svr); if (svr->fd_handler) ecore_main_fd_handler_del(svr->fd_handler);