rwatson 2006-07-23 12:01:14 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_usrreq.c
sys/sys unpcb.h
Log:
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.
Revision Changes Path
1.178 +34 -16 src/sys/kern/uipc_usrreq.c
1.20 +8 -0 src/sys/sys/unpcb.h
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"