summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-29 08:47:37 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-29 10:43:01 -0500
commit5651eb6c3f4a167fad3e4ad069e2556a9352cd8e (patch)
tree785a31fddc6cd2bac641b83919ea958c3538d77a /src/bin/e_ipc.c
parent2343ab165a598ef4aeec1d6109738a7cbf5978d7 (diff)
remove DISPLAY usage from E_IPC_SOCKET value
pid should be enough here CID 1039791
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index aca762c..17f645a 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -17,7 +17,7 @@ EINTERN int
17e_ipc_init(void) 17e_ipc_init(void)
18{ 18{
19 char buf[4096], buf2[128], buf3[4096]; 19 char buf[4096], buf2[128], buf3[4096];
20 char *tmp, *user, *disp, *disp2, *base; 20 char *tmp, *user, *base;
21 int pid, trynum = 0, id1 = 0; 21 int pid, trynum = 0, id1 = 0;
22 struct stat st; 22 struct stat st;
23 23
@@ -71,15 +71,6 @@ e_ipc_init(void)
71 } 71 }
72 } 72 }
73 73
74 disp = getenv("DISPLAY");
75 if (!disp) disp = ":0";
76 else
77 {
78 /* $DISPLAY may be a path (e.g. Xquartz), keep the basename. */
79 disp2 = strrchr(disp, '/');
80 if (disp2) disp = disp2 + 1;
81 }
82
83 e_util_env_set("E_IPC_SOCKET", ""); 74 e_util_env_set("E_IPC_SOCKET", "");
84 75
85 pid = (int)getpid(); 76 pid = (int)getpid();
@@ -96,8 +87,8 @@ e_ipc_init(void)
96 (S_IRWXU | S_IFDIR))) 87 (S_IRWXU | S_IFDIR)))
97 { 88 {
98#ifdef USE_IPC 89#ifdef USE_IPC
99 snprintf(buf3, sizeof(buf3), "%s/%s-%i", 90 snprintf(buf3, sizeof(buf3), "%s/%i",
100 buf, disp, pid); 91 buf, pid);
101 _e_ipc_server = ecore_ipc_server_add 92 _e_ipc_server = ecore_ipc_server_add
102 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL); 93 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
103 if (_e_ipc_server) 94 if (_e_ipc_server)