* Add a flag to track an in-transit socket abort to avoid races when closing
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Aug 2008 23:15:45 +0000 (23:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Aug 2008 23:15:45 +0000 (23:15 +0000)
commit4402d8a2a5a7cbd1d5b981d306905fbddcaa4056
tree528a2e8aac28b9522f9eb585bf605f3ca1a400dd
parent049ed094746c133279c14ffd1daf8c49ccacdb0c
* Add a flag to track an in-transit socket abort to avoid races when closing
  a socket.

* Abort sockets asynchronously to prevent socket proto threads from
  deadlocking each other.

Reported-by: Peter Avalos
sys/kern/uipc_msg.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/sys/socketops.h
sys/sys/socketvar.h