K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:16:23.000000Z K 7 svn:log V 599 Merge uipc_usrreq.c:1.178,1.192 from HEAD to RELENG_6: Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be used to mark UNIX domain sockets as being in the process of binding or connecting. Use these to prevent simultaneous bind or connect operations by multiple threads or processes on the same socket at the same time, which closes race conditions present in the UNIX domain socket implementation since inception. Set UNP_CONNECTING when committing to moving ahead in unp_connect(). This logic was lost when merging the remainder of these changes in 1.178. END