summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:33:16 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:33:16 +0100
commit0e5e0ec2189600157f6966afd40f3132d23f6c3a (patch)
tree63f71c51954eaf4b1c7ec6fca88f1bf67d28deee /src/bin/e_ipc.c
parent05f00710f22382902ac866461f8287a0fce90616 (diff)
reduce indent level
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index e2853ce..893a863 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -82,18 +82,17 @@ e_ipc_init(void)
82 base, user, id1); 82 base, user, id1);
83 if (mkdir(buf, S_IRWXU) < 0) 83 if (mkdir(buf, S_IRWXU) < 0)
84 goto retry; 84 goto retry;
85 if (stat(buf, &st) == 0) 85 if (stat(buf, &st) < 0)
86 goto retry;
87 if ((st.st_uid == getuid()) &&
88 ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
89 (S_IRWXU | S_IFDIR)))
86 { 90 {
87 if ((st.st_uid == getuid()) && 91 snprintf(buf3, sizeof(buf3), "%s/%s-%i",
88 ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) == 92 buf, disp, pid);
89 (S_IRWXU | S_IFDIR))) 93 _e_ipc_server = ecore_ipc_server_add
90 { 94 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
91 snprintf(buf3, sizeof(buf3), "%s/%s-%i", 95 if (_e_ipc_server) break;
92 buf, disp, pid);
93 _e_ipc_server = ecore_ipc_server_add
94 (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
95 if (_e_ipc_server) break;
96 }
97 } 96 }
98retry: 97retry:
99 id1 = rand(); 98 id1 = rand();