The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=677465720ad10f24de178c8bba0285cb3f3c23fe
commit 677465720ad10f24de178c8bba0285cb3f3c23fe Author: Kevin Bowling <kbowl...@freebsd.org> AuthorDate: 2025-07-26 21:18:47 +0000 Commit: Kevin Bowling <kbowl...@freebsd.org> CommitDate: 2025-07-29 03:40:26 +0000 getsockopt.2: Add SO_SPLICE source socket read and socket close behavior Add select(2), poll(2), or kqueue(2) source socket semantics and close behavior. Reported by: Udip Pant <up...@netflix.com> Reviewed by: manpages (ziaee), markj Obtained from: OpenBSD Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51547 (cherry picked from commit 122b2a3530f8baab56d196b51724cc3ddd38abd2) --- lib/libc/sys/getsockopt.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index f36a9fe7baf8..b9c6589d07ac 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -595,6 +595,15 @@ specified amount of time has elapsed since the initial call to If .Fa sp_fd is -1, the socket will be unspliced immediately. +A successful +.Xr select 2 , +.Xr poll 2 , +or +.Xr kqueue 2 +operation testing the ability to read from the source socket indicates +that the splicing has terminated and at least one byte is available for +reading. +When one of the sockets gets closed, splicing ends. .Pp When passed to .Fn getsockopt ,