git: socket: Allow keeping a reference on the new socket in sonewconn_faddr

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Aug 22 06:29:41 PDT 2015


commit 37e299d5765095e73cc729dd442388f56ce31e1a
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sat Aug 22 21:19:38 2015 +0800

    socket: Allow keeping a reference on the new socket in sonewconn_faddr
    
    It will be used to fix unix socket races.

Summary of changes:
 sys/kern/uipc_socket2.c    | 12 +++++++++---
 sys/netinet/tcp_syncache.c |  8 +++++++-
 sys/sys/socketvar.h        |  2 +-
 3 files changed, 17 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/37e299d5765095e73cc729dd442388f56ce31e1a


-- 
DragonFly BSD source repository



More information about the Commits mailing list