summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2017-07-26 18:48:45 -0300
committerStefan Schmidt <stefan@osg.samsung.com>2017-07-27 16:54:34 +0200
commit45a767632d417043936622f78597c06dc7a8cf94 (patch)
treeeea5357c87b853acba29e2ab82dd592642b57dbf /src/lib/ecore_ipc
parent97f6803be14212c8b5fb70071e312cf1e51f8fe5 (diff)
Ecore_Conn: Enable CLOEXEC by default.
This flag should be enabled by default in order to avoid socket leaks.
Diffstat (limited to 'src/lib/ecore_ipc')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 8cb7f3f7e8..0b27496d2f 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -481,7 +481,6 @@ ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void
481 481
482 if (efl_isa(svr->server, EFL_NET_SERVER_FD_CLASS)) 482 if (efl_isa(svr->server, EFL_NET_SERVER_FD_CLASS))
483 { 483 {
484 efl_net_server_fd_close_on_exec_set(svr->server, EINA_TRUE);
485 efl_net_server_fd_reuse_address_set(svr->server, EINA_TRUE); 484 efl_net_server_fd_reuse_address_set(svr->server, EINA_TRUE);
486 efl_net_server_fd_reuse_port_set(svr->server, EINA_TRUE); 485 efl_net_server_fd_reuse_port_set(svr->server, EINA_TRUE);
487 } 486 }
@@ -495,7 +494,6 @@ ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void
495 { 494 {
496 /* old ecore_con did not map ipv4 to ipv6... */ 495 /* old ecore_con did not map ipv4 to ipv6... */
497 efl_net_server_ssl_ipv6_only_set(svr->server, EINA_TRUE); 496 efl_net_server_ssl_ipv6_only_set(svr->server, EINA_TRUE);
498 efl_net_server_ssl_close_on_exec_set(svr->server, EINA_TRUE);
499 efl_net_server_ssl_reuse_address_set(svr->server, EINA_TRUE); 497 efl_net_server_ssl_reuse_address_set(svr->server, EINA_TRUE);
500 efl_net_server_ssl_reuse_port_set(svr->server, EINA_TRUE); 498 efl_net_server_ssl_reuse_port_set(svr->server, EINA_TRUE);
501 } 499 }