daemon: claim ipc endpoint before ibus publication
This commit is contained in:
3
srv.c
3
srv.c
@@ -59,7 +59,7 @@ clientthread(void *arg)
|
||||
chanrecv(clientc, &token);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
srvinit(void)
|
||||
{
|
||||
char *addr, path[sizeof(((struct sockaddr_un*)0)->sun_path)];
|
||||
@@ -84,7 +84,6 @@ srvthread(void*)
|
||||
uchar token;
|
||||
|
||||
threadsetname("srv");
|
||||
srvinit();
|
||||
token = 0;
|
||||
clientc = chancreate(sizeof token, Maxclients);
|
||||
for(;;){
|
||||
|
||||
Reference in New Issue
Block a user