summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorrbdpngn <rbdpngn>2006-01-11 05:13:23 +0000
committerrbdpngn <rbdpngn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2006-01-11 05:13:23 +0000
commitf1bc839522d1b4c8af7f9e6c49d527efd4a5a799 (patch)
treec96b3b696f7349e8188d2889089a4da8e1c9b318 /legacy/ecore/src/lib/ecore_ipc
parent702c78bb8205352a8d066513f04f70276921e8c5 (diff)
Revert disown call and force the parent to check if it created the socket
before unlinking it. SVN revision: 19714
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h1
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index 52455c684c..9071cacc2c 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -297,7 +297,6 @@ EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
297 /* FIXME: this needs to become an ipc message */ 297 /* FIXME: this needs to become an ipc message */
298 EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size); 298 EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size);
299 EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients); 299 EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients);
300 EAPI void ecore_ipc_server_disown(Ecore_Ipc_Server *svr);
301 300
302 /* FIXME: this needs to become an ipc message */ 301 /* FIXME: this needs to become an ipc message */
303 EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size); 302 EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size);
diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
index 207c850df5..47da681761 100644
--- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
+++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
@@ -600,26 +600,6 @@ ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char
600 ecore_con_server_client_limit_set(svr->server, client_limit, reject_excess_clients); 600 ecore_con_server_client_limit_set(svr->server, client_limit, reject_excess_clients);
601} 601}
602 602
603/**
604 * Flag the server as not owned by this process, important to use after
605 * forking so child processes do not remove a parents socket path.
606 * Beware that if you set this in the parent, stale sockets may be left
607 * around.
608 * @param svr The given server.
609 * @ingroup Ecore_Ipc_Server_Group
610 */
611void
612ecore_ipc_server_disown(Ecore_Ipc_Server *svr)
613{
614 if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_IPC_SERVER))
615 {
616 ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_IPC_SERVER,
617 "ecore_ipc_server_client_limit_set");
618 return;
619 }
620 ecore_con_server_disown(svr->server);
621}
622
623#define CLENC(_member) \ 603#define CLENC(_member) \
624 d = _ecore_ipc_dlt_int(msg._member, cl->prev.o._member, &md); \ 604 d = _ecore_ipc_dlt_int(msg._member, cl->prev.o._member, &md); \
625 if (md >= DLT_SET) \ 605 if (md >= DLT_SET) \