>>103273421
Does anyone have a clue what the fuck might be going wrong?
// Getting EADDRINUSE on bind()
int srvlistener = socket(AF_UNIX,SOCK_STREAM,0);
int addrlen = strlen(ROOTSRV_SOCKET_PATH+offsetof(sockaddr_un_t,sun_path));
sockaddr_un_t* srvaddr = calloc(addrlen);
srvaddr->sun_family = AF_UNIX;
memcpy(&srvaddr->sun_path,ROOTSRV_SOCKET_PATH,strlen(ROOTSRV_SOCKET_PATH));
int true = 1;
setsockopt(srvlistener,SOL_SOCKET,SO_REUSEADDR,&true,sizeof(int));
bind(srvlistener,srvaddr,addrlen);
listen(srvlistener,SOMAXCONN);
ROOTSRV_SOCKET_PATH is not a live file so the "another process" possibility is out of the window
Yes, it stopped working, for some reason