socket: Allow keeping a reference on the new socket in sonewconn_faddr
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 22 Aug 2015 13:19:38 +0000 (21:19 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 22 Aug 2015 13:21:35 +0000 (21:21 +0800)
commit37e299d5765095e73cc729dd442388f56ce31e1a
tree6d13b7ad721f31bd00c587f1ab3cc47ab3f0e64d
parent803abf2511f69772ed8e238d7d0cba6e17a8b966
socket: Allow keeping a reference on the new socket in sonewconn_faddr

It will be used to fix unix socket races.
sys/kern/uipc_socket2.c
sys/netinet/tcp_syncache.c
sys/sys/socketvar.h