From 047141fc908f3457ef43f333df603914b2676047 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 26 Nov 2017 14:01:14 +0900 Subject: [PATCH] ecore ipc/con: fix nasty ... they dont mutually exclude by deleting the socket they wont mutually exclude at bind which means eny new server just nides the pror one and you can get lots of copies of the same server. this wasnt the case before. it shouldnt have been. i think ther was an rm path for stale sockets when connecting failed or something. anyway... this here was causing multilpe efreetd's and all sorts of nastiness. this is the root cause. so... fix it. @fix --- src/lib/ecore_con/ecore_con_legacy.c | 1 - src/lib/ecore_ipc/ecore_ipc.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c index 1e04ae614e..dc16f7cb6c 100644 --- a/src/lib/ecore_con/ecore_con_legacy.c +++ b/src/lib/ecore_con/ecore_con_legacy.c @@ -1531,7 +1531,6 @@ _ecore_con_server_server_set(Ecore_Con_Server *svr, Eo *server) #ifdef EFL_NET_SERVER_UNIX_CLASS else if (efl_isa(inner_server, EFL_NET_SERVER_UNIX_CLASS)) { - efl_net_server_unix_unlink_before_bind_set(inner_server, EINA_TRUE); efl_net_server_unix_leading_directories_create_set(inner_server, EINA_TRUE, (type == ECORE_CON_LOCAL_SYSTEM) ? 0755 : 0700); } #endif diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c index 913ad3a2b5..7dbdb92d16 100644 --- a/src/lib/ecore_ipc/ecore_ipc.c +++ b/src/lib/ecore_ipc/ecore_ipc.c @@ -495,7 +495,6 @@ ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void if (efl_isa(svr->server, EFL_NET_SERVER_UNIX_CLASS)) { old_mask = umask(new_mask); - efl_net_server_unix_unlink_before_bind_set(svr->server, EINA_TRUE); efl_net_server_unix_leading_directories_create_set(svr->server, EINA_TRUE, local_system ? 0755 : 0700);