summaryrefslogtreecommitdiff
path: root/legacy/eet/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-05-11 10:28:02 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-05-11 10:28:02 +0000
commit2964d1b7727f84cd7fbb871f0dc7b876251fa62b (patch)
treec7b7e42dc10f9b6bd184721c17b09fbd2f8381f4 /legacy/eet/src
parent8a73b16dfb2d37ba91c99d9d8af9f74b3ad57ecc (diff)
eet: force closing all file on shutdown.
SVN revision: 70928
Diffstat (limited to 'legacy/eet/src')
-rw-r--r--legacy/eet/src/lib/eet_lib.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c
index a356a2b921..a3295f47af 100644
--- a/legacy/eet/src/lib/eet_lib.c
+++ b/legacy/eet/src/lib/eet_lib.c
@@ -633,6 +633,33 @@ eet_shutdown(void)
633 return eet_init_count; 633 return eet_init_count;
634 634
635 eet_clearcache(); 635 eet_clearcache();
636
637 if (eet_writers_num || eet_readers_num)
638 {
639 Eet_File **closelist = NULL;
640 int num = 0;
641 int i;
642
643 closelist = alloca((eet_writers_num + eet_readers_num)
644 * sizeof(Eet_File *));
645 for (i = 0; i < eet_writers_num; i++)
646 {
647 closelist[num++] = eet_writers[i];
648 eet_writers[i]->delete_me_now = 1;
649 }
650
651 for (i = 0; i < eet_readers_num; i++)
652 {
653 closelist[num++] = eet_readers[i];
654 eet_readers[i]->delete_me_now = 1;
655 }
656
657 for (i = 0; i < num; i++)
658 {
659 ERR("File '%s' is still open !", closelist[i]->path);
660 eet_internal_close(closelist[i], EINA_TRUE);
661 }
662 }
636 eet_node_shutdown(); 663 eet_node_shutdown();
637 eet_mempool_shutdown(); 664 eet_mempool_shutdown();
638 665