daemon: claim ipc endpoint before ibus publication

This commit is contained in:
2026-08-14 01:02:17 +09:00
parent 0f8396915b
commit 335783ebe5
3 changed files with 3 additions and 2 deletions

3
srv.c
View File

@@ -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(;;){