Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2005 12:53:46 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_socket2.c
Message-ID:  <200502171253.j1HCrkex016940@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-02-17 12:53:46 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket2.c 
  Log:
  In sonewconn(), set the new socket's state to show the protocol-provided
  connection status before inserting the new socket into the listen
  socket's accept queue, or there might be a race in which another thread
  wakes up when the accept lock is released, and sees the socket before its
  state is set correctly.  The wakeup still occurs after the accept lock is
  released.  There have been no diagnoses of this bug in real-world systems
  (as yet).
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.142     +1 -1      src/sys/kern/uipc_socket2.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502171253.j1HCrkex016940>