zehortigoza pushed a commit to branch master.
commit b7331d2434e0ed59a3f8bf15a75ac17c07d94b37
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_core.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/lib/eldbus_core.c b/src/lib/eldbus_core.c
index 25bde7e..a7af40f 100644
--- a/src/lib/eldbus_core.c
+++ b/src/lib/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);
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk