This patch fixes a potential fd leak in ecore_con.
thanks,
Mike
>From baece8fc38b147a93628eecfb3e303ada2f1ee0e Mon Sep 17 00:00:00 2001
From: Mike McCormack <mj.mccorm...@samsung.com>
Date: Tue, 14 Dec 2010 18:01:02 +0900
Subject: [PATCH] Fix fd leak
---
trunk/ecore/src/lib/ecore_con/ecore_con.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/trunk/ecore/src/lib/ecore_con/ecore_con.c b/trunk/ecore/src/lib/ecore_con/ecore_con.c
index 49f1fae..111ac5b 100644
--- a/trunk/ecore/src/lib/ecore_con/ecore_con.c
+++ b/trunk/ecore/src/lib/ecore_con/ecore_con.c
@@ -1291,6 +1291,12 @@ _ecore_con_server_kill(Ecore_Con_Server *svr)
ecore_main_fd_handler_del(svr->fd_handler);
svr->fd_handler = NULL;
+
+ if (svr->fd >= 0)
+ {
+ close(svr->fd);
+ svr->fd = -1;
+ }
}
static Eina_Bool
--
1.7.0.4
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel