gh-127840: pass flags and address from send_fds (GH-127841)

socket: pass flags and address from send_fds

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Marcin Bachry 2025-05-22 04:38:01 +02:00 committed by GitHub
parent b1b8962443
commit 518c95b552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 1 deletions

View file

@ -563,7 +563,7 @@ if hasattr(_socket.socket, "sendmsg"):
import array
return sock.sendmsg(buffers, [(_socket.SOL_SOCKET,
_socket.SCM_RIGHTS, array.array("i", fds))])
_socket.SCM_RIGHTS, array.array("i", fds))], flags, address)
__all__.append("send_fds")
if hasattr(_socket.socket, "recvmsg"):