Remove Prevent defect
authorHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 3 Jun 2013 02:50:30 +0000 (11:50 +0900)
committerHyunbin 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

index 3987029..f95fa46 100644 (file)
@@ -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))