summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index b01a4357b3..bd78f92c50 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -2,6 +2,7 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#include <errno.h>
5#include <stdlib.h> 6#include <stdlib.h>
6#include <stdio.h> 7#include <stdio.h>
7#include <string.h> 8#include <string.h>
@@ -294,7 +295,7 @@ _ecore_file_monitor_inotify_monitor(Ecore_File_Monitor *em, const char *path)
294 inotify_add_watch(ecore_main_fd_handler_fd_get(_fdh), path, mask); 295 inotify_add_watch(ecore_main_fd_handler_fd_get(_fdh), path, mask);
295 if (ECORE_FILE_MONITOR_INOTIFY(em)->wd < 0) 296 if (ECORE_FILE_MONITOR_INOTIFY(em)->wd < 0)
296 { 297 {
297 INF("inotify_add_watch failed, file was deleted"); 298 INF("inotify_add_watch failed, %s", strerror(errno));
298 ecore_file_monitor_backend_del(em); 299 ecore_file_monitor_backend_del(em);
299 return 0; 300 return 0;
300 } 301 }