On Thu, May 31, 2012 at 6:35 PM, Pierre Ynard <[email protected]> wrote:
> A solution could be to try to connect() to the existing socket: if it is > a stray socket left by a dead process, it should return a "connection > refused" error, so you know you can delete it. There is still a race > condition between that check and the unlink() though. There's a relevant stackoverflow thread here: http://stackoverflow.com/questions/7405932/how-to-know-whether-any-process-is-bound-to-a-unix-domain-socket Perhaps there are ways to make this work better on some OSes at least. -Pieter _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
