tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f05577c3ae72cb1f1a34be3793243a008cd8e1bb

commit f05577c3ae72cb1f1a34be3793243a008cd8e1bb
Author: Awadhesh Singh <awadhesh...@samsung.com>
Date:   Fri Feb 5 11:44:39 2016 +0000

    Ecore con: Close server socket fd on failure.
    
    Summary:
    Socket fd must be closed to avoid file discripter leak.
    Programs can usually only open a limited number of file descriptors,
    so if this happens a lot, it may turn into a problem.
    
    @fix
    
    Reviewers: raster, Hermet, wonsik, spacegrapher, cedric, jpeg, tasn
    
    Reviewed By: tasn
    
    Subscribers: cedric, alok25, yashu21985, singh.amitesh
    
    Differential Revision: https://phab.enlightenment.org/D3660
---
 src/lib/ecore_con/ecore_con_local.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_con/ecore_con_local.c 
b/src/lib/ecore_con/ecore_con_local.c
index b6f682a..20ede37 100644
--- a/src/lib/ecore_con/ecore_con_local.c
+++ b/src/lib/ecore_con/ecore_con_local.c
@@ -418,6 +418,7 @@ fd_ready:
 error_umask:
    umask(pmode);
 error:
+   close(svr->fd);
 #endif /* HAVE_LOCAL_SOCKETS */
    return 0;
 }

-- 


Reply via email to