Page MenuHomeFreeBSD

D44640.diff
No OneTemporary

D44640.diff

diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -922,6 +922,10 @@
so->so_snd.sb_timeo = head->so_snd.sb_timeo;
so->so_rcv.sb_flags |= head->so_rcv.sb_flags & SB_AUTOSIZE;
so->so_snd.sb_flags |= head->so_snd.sb_flags & SB_AUTOSIZE;
+ if ((so->so_proto->pr_flags & PR_SOCKBUF) == 0) {
+ so->so_snd.sb_mtx = &so->so_snd_mtx;
+ so->so_rcv.sb_mtx = &so->so_rcv_mtx;
+ }
soref(so);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 4:22 AM (18 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15750069
Default Alt Text
D44640.diff (465 B)

Event Timeline