git: 52c0aa086d6b - main - unix/stream: shutdown(SHUT_WR) shall trigger read event on peer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Jun 2025 06:06:09 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=52c0aa086d6b3184f6dfb83faa70be98e7d8e1df
commit 52c0aa086d6b3184f6dfb83faa70be98e7d8e1df
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-06-10 06:01:53 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-06-10 06:05:07 +0000
unix/stream: shutdown(SHUT_WR) shall trigger read event on peer
Reported by: kp, brd
Fixes: d15792780760ef94647af9b377b5f0a80e1826bc
---
sys/kern/uipc_usrreq.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index c176119382fa..3f6535567e9d 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1346,6 +1346,8 @@ uipc_cantrcvmore(struct socket *so)
SOCK_RECVBUF_LOCK(so);
so->so_rcv.sb_state |= SBS_CANTRCVMORE;
+ selwakeuppri(&so->so_rdsel, PSOCK);
+ KNOTE_LOCKED(&so->so_rdsel.si_note, 0);
if (so->so_rcv.uxst_peer != NULL)
uipc_wakeup_writer(so);
else