summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-26 14:01:14 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-26 14:01:14 +0900
commit047141fc908f3457ef43f333df603914b2676047 (patch)
tree8fef53fef830307fefe580612ac3d09c0315ba2e
parent01ec011f8e1346ef8e8b6d269d3a2722076e2ebf (diff)
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
-rw-r--r--src/lib/ecore_con/ecore_con_legacy.c1
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c
index 1e04ae6..dc16f7c 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)
1531#ifdef EFL_NET_SERVER_UNIX_CLASS 1531#ifdef EFL_NET_SERVER_UNIX_CLASS
1532 else if (efl_isa(inner_server, EFL_NET_SERVER_UNIX_CLASS)) 1532 else if (efl_isa(inner_server, EFL_NET_SERVER_UNIX_CLASS))
1533 { 1533 {
1534 efl_net_server_unix_unlink_before_bind_set(inner_server, EINA_TRUE);
1535 efl_net_server_unix_leading_directories_create_set(inner_server, EINA_TRUE, (type == ECORE_CON_LOCAL_SYSTEM) ? 0755 : 0700); 1534 efl_net_server_unix_leading_directories_create_set(inner_server, EINA_TRUE, (type == ECORE_CON_LOCAL_SYSTEM) ? 0755 : 0700);
1536 } 1535 }
1537#endif 1536#endif
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 913ad3a..7dbdb92 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
495 if (efl_isa(svr->server, EFL_NET_SERVER_UNIX_CLASS)) 495 if (efl_isa(svr->server, EFL_NET_SERVER_UNIX_CLASS))
496 { 496 {
497 old_mask = umask(new_mask); 497 old_mask = umask(new_mask);
498 efl_net_server_unix_unlink_before_bind_set(svr->server, EINA_TRUE);
499 efl_net_server_unix_leading_directories_create_set(svr->server, 498 efl_net_server_unix_leading_directories_create_set(svr->server,
500 EINA_TRUE, 499 EINA_TRUE,
501 local_system ? 0755 : 0700); 500 local_system ? 0755 : 0700);