Sorry, I accidentally hit send… Here's the rest: In the following call can be found in bot Svar_DB.cc and the APserver, you can find the following:
strcpy(remote.sun_path + ABSTRACT_OFFSET, server_sockname); ABSTRACT_OFFSET is #defined to 1. This means that the first character of the path will be 0 (there is a memset() before), and of course the call to bind() will fail. Removing the addition of ABSTRACT_OFFSET will fix the problem. I've been looking at the code and I have been trying to figure out why the code was written in this way to begin with. Any ideas? Regards, Elias On 24 July 2014 18:55, Elias Mårtenson <loke...@gmail.com> wrote: > I had never been able to get APserver to work properly, and particularly > not with the Unix Domain Sockets. > > But, I finally figured it out. :-) > > In the following call can be found in bot Svar_DB.cc and the APserver. >