tasn pushed a commit to branch efl-1.17.

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

commit 6ec5ba177b4f8f7482fe8eae5c2f16424f880ac9
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 c493cc5..9196e18 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