devilhorns pushed a commit to branch master.
commit 65fc207951425df8e5528bc30833141e493609ea
Author: Chris Michael <[email protected]>
Date: Mon Aug 5 11:36:24 2013 +0100
Don't pass negative values to close:
ecore_main_fd_handler_fd_get can return -1, so check return value
before passing to close().
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/ecore_file/ecore_file_monitor_inotify.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c
b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index 60050e3..18b8007 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -88,7 +88,8 @@ ecore_file_monitor_backend_shutdown(void)
{
fd = ecore_main_fd_handler_fd_get(_fdh);
ecore_main_fd_handler_del(_fdh);
- close(fd);
+ if (fd > -1)
+ close(fd);
}
_inotify_fd_pid = -1;
return 1;
--
------------------------------------------------------------------------------
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