From 66decc410d70648fbebed702d7852aa18915be89 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 8 Dec 2011 03:34:44 +0000 Subject: [PATCH] fix del of directories and copy too. SVN revision: 66010 --- src/bin/e_fm_op.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index b27af82a1..4e6ed77d4 100644 --- a/src/bin/e_fm_op.c +++ b/src/bin/e_fm_op.c @@ -49,6 +49,12 @@ void *alloca (size_t); #define FREE(p) do { if (p) {free((void *)p); p = NULL;} } while (0) +#define LG(fmt, args...) {\ + FILE *f = fopen("log", "a"); \ + if (f) fprintf(f, fmt, ##args); \ + if (f) fclose(f); \ +} + typedef struct _E_Fm_Op_Task E_Fm_Op_Task; typedef struct _E_Fm_Op_Copy_Data E_Fm_Op_Copy_Data; @@ -678,8 +684,8 @@ _e_fm_op_work_idler(void *data __UNUSED__) // _e_fm_op_scan_error == 1 // we can spin forever. why are we spinning at all? there are no // tasks to be done. we have an error. wait for it to be handled - if (!_e_fm_op_work_queue) - ecore_main_loop_quit(); + if ((!_e_fm_op_work_queue) && (!_e_fm_op_scan_queue)) + ecore_main_loop_quit(); return ECORE_CALLBACK_RENEW; }