projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445f2eb
)
ecore_file: Print more informative message when inotify_add_watch was failed.
author
Ryuan Choi
<ryuan.choi@gmail.com>
Mon, 25 Nov 2013 10:21:52 +0000
(19:21 +0900)
committer
Ryuan Choi
<ryuan.choi@gmail.com>
Mon, 25 Nov 2013 10:21:52 +0000
(19:21 +0900)
inotify_add_watch can be failed because of several reasons.
src/lib/ecore_file/ecore_file_monitor_inotify.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_file/ecore_file_monitor_inotify.c
b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index
b01a435
..
bd78f92
100644
(file)
--- a/
src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/
src/lib/ecore_file/ecore_file_monitor_inotify.c
@@
-2,6
+2,7
@@
# include <config.h>
#endif
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@
-294,7
+295,7
@@
_ecore_file_monitor_inotify_monitor(Ecore_File_Monitor *em, const char *path)
inotify_add_watch(ecore_main_fd_handler_fd_get(_fdh), path, mask);
if (ECORE_FILE_MONITOR_INOTIFY(em)->wd < 0)
{
- INF("inotify_add_watch failed,
file was deleted"
);
+ INF("inotify_add_watch failed,
%s", strerror(errno)
);
ecore_file_monitor_backend_del(em);
return 0;
}