[EGIT] [core/efl] efl-1.17 01/01: Ecore con: Close server socket fd on failure.

2016-02-05 Thread Awadhesh Singh
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 +

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;
 }

-- 




[EGIT] [core/efl] master 01/01: Ecore con: Close server socket fd on failure.

2016-02-05 Thread Awadhesh Singh
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 +

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;
 }

--