cvs commit: src/sys/kern uipc_usrreq.c src/sys/sys unpcb.h

Robert Watson rwatson at FreeBSD.org
Sun Jul 23 12:01:14 UTC 2006


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


More information about the cvs-src mailing list