forked from enlightenment/efl
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:
parent
42496ac4ea
commit
5444ee0681
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue