It seems the namelen parameter one passes bind() should be 2 + strlen(socketname), and then everything works. -- Eran Yehudai eran at thsun1.slac.stanford.edu