devilhorns pushed a commit to branch master.
commit 5444ee06819bbd06956cfc69be4561e4d9963dc9
Author: Chris Michael <[email protected]>
Date: Mon Aug 5 10:56:37 2013 +0100
ecore_main_fd_handler_fd_get Can return -1 so check fd validity before
calling close() on it.
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/eio/eio_monitor_inotify.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib/eio/eio_monitor_inotify.c
b/src/lib/eio/eio_monitor_inotify.c
index 0ec2f8f..6fb6b08 100644
--- a/src/lib/eio/eio_monitor_inotify.c
+++ b/src/lib/eio/eio_monitor_inotify.c
@@ -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);
}
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk