summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-14 06:38:25 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-14 06:38:25 +0000
commit8e5a49765baabaf8375d816971920f5ce5fb4fbe (patch)
treed1b1e4914ce83882f7beb9c9988506203b2358b8 /src/bin/e_ipc.c
parent1c4eb6a88166aa7ccb0a4a241bda568ad98c93dc (diff)
make e ipc socket string shorter. osx is unhappy with long paths for
sockets it seems. :) SVN revision: 79268
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index 67d2594..c616c0f 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -51,10 +51,10 @@ e_ipc_init(void)
51 for (trynum = 0; trynum <= 4096; trynum++) 51 for (trynum = 0; trynum <= 4096; trynum++)
52 { 52 {
53 struct stat st; 53 struct stat st;
54 int id1 = 0, id2 = 0; 54 int id1 = 0;
55 55
56 snprintf(buf, sizeof(buf), "%s/enlightenment-%s@%08x%08x", 56 snprintf(buf, sizeof(buf), "%s/e-%s@%x",
57 base, user, id1, id2); 57 base, user, id1);
58 mkdir(buf, S_IRWXU); 58 mkdir(buf, S_IRWXU);
59 if (stat(buf, &st) == 0) 59 if (stat(buf, &st) == 0)
60 { 60 {
@@ -62,7 +62,7 @@ e_ipc_init(void)
62 ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) == 62 ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
63 (S_IRWXU | S_IFDIR))) 63 (S_IRWXU | S_IFDIR)))
64 { 64 {
65 snprintf(buf3, sizeof(buf3), "%s/disp-%s-%i", 65 snprintf(buf3, sizeof(buf3), "%s/%s-%i",
66 buf, disp, pid); 66 buf, disp, pid);
67 _e_ipc_server = ecore_ipc_server_add 67 _e_ipc_server = ecore_ipc_server_add
68 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL); 68 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
@@ -70,7 +70,6 @@ e_ipc_init(void)
70 } 70 }
71 } 71 }
72 id1 = rand(); 72 id1 = rand();
73 id2 = rand();
74 } 73 }
75 if (!_e_ipc_server) return 0; 74 if (!_e_ipc_server) return 0;
76 75