CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2025/01/16 09:35:01

Modified files:
        sys/kern       : uipc_socket2.c uipc_syscalls.c 
        sys/sys        : socketvar.h 

Log message:
Lock the new socket in sonewconn() also for the internet family.

UNIX sockets were already locking the newly allocated socket during
soreserve() and pru_attach().  The same is neeed for TCP input
unlocking.  When two sockets have to be locked, one needs shared
net lock, but the other already has it.  This is the same idea as
in doaccept().  Unify the lock functions solock_nonet() and
sounlock_nonet().

OK mvs@

Reply via email to