zehortigoza pushed a commit to branch master.

commit 274799cb084b62488a8abf56b6cb1c46304d2da2
Author: José Roberto de Souza <[email protected]>
Date:   Mon Jun 10 01:33:31 2013 -0300

    eldbus: Fix crash when eldbus is shutdown and we have a live connection of 
type address
    
    Also show info about each connection of type address live.
---
 src/lib/eldbus/eldbus_core.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/lib/eldbus/eldbus_core.c b/src/lib/eldbus/eldbus_core.c
index 25bde7e..a7af40f 100644
--- a/src/lib/eldbus/eldbus_core.c
+++ b/src/lib/eldbus/eldbus_core.c
@@ -221,8 +221,16 @@ eldbus_shutdown(void)
      {
         if (eina_hash_population(address_connections))
           {
-             CRITICAL("Alive TYPE_ADDRESS connection");
-             
print_live_connection(shared_connections[ELDBUS_CONNECTION_TYPE_ADDRESS - 1]);
+             Eina_Iterator *it;
+             Eina_Hash_Tuple *tuple;
+
+             it = eina_hash_iterator_tuple_new(address_connections);
+             EINA_ITERATOR_FOREACH(it, tuple)
+               {
+                  CRITICAL("Alive TYPE_ADDRESS connection: %s", 
(char*)tuple->key);
+                  print_live_connection(tuple->data);
+               }
+             eina_iterator_free(it);
           }
 
         eina_hash_free(address_connections);

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to