projects
/
platform
/
framework
/
native
/
appfw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
615037b
)
Remove Prevent defect
author
Hyunbin Lee
<hyunbin.lee@samsung.com>
Mon, 3 Jun 2013 02:50:30 +0000
(11:50 +0900)
committer
Hyunbin Lee
<hyunbin.lee@samsung.com>
Mon, 3 Jun 2013 02:50:58 +0000
(11:50 +0900)
Change-Id: I15788153f06490c643b27efa8785185bfdd86b80
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/io/FIo_FileEventDispatcher.cpp
patch
|
blob
|
history
diff --git
a/src/io/FIo_FileEventDispatcher.cpp
b/src/io/FIo_FileEventDispatcher.cpp
index
3987029
..
f95fa46
100644
(file)
--- a/
src/io/FIo_FileEventDispatcher.cpp
+++ b/
src/io/FIo_FileEventDispatcher.cpp
@@
-209,7
+209,8
@@
_FileEventDispatcher::SendEvent(void)
char buffer[INOTIFY_BUFFER_LEN + 1] = { 0, };
ssize_t length = read(__inotifyFd, buffer, INOTIFY_BUFFER_LEN);
- SysTryReturnResult(NID_IO, length < (long)INOTIFY_BUFFER_LEN, E_IO, "Read buffer has failed.");
+ SysTryReturnResult(NID_IO, length >= 0 && length < (long)INOTIFY_BUFFER_LEN, E_IO,
+ "Failed to read inotify buffer. errno: %d (%s)", errno, strerror(errno));
unsigned long iter = 0;
while (iter < static_cast< unsigned long >(length))