ecore_main_fd_handler_fd_get Can return -1 so check fd validity before

calling close() on it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-05 10:56:37 +01:00
parent 42496ac4ea
commit 5444ee0681
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ void eio_monitor_backend_shutdown(void)
ecore_main_fd_handler_del(_inotify_fdh);
_inotify_fdh = NULL;
if (fd < 0)
return;
close(fd);
}