So, what about: char tmpl[] = "/tmp/dirXXXXXXX"; char dir[sizeof(tmpl)]; do { strcpy(x, tmpl); mktemp(x); } while (mkdir(x, 0700) != 0); bind(somesocket in dir x) rename(nameof socket, desired name of socket); rmdir(x); Under proper uids; I think most UNIX domain sockets can stand renaming; not sure if they all do. Casper
This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 15:06:27 PDT