HomeFreeBSD

linux sendfile: Fix handling of non-blocking sockets

Description

linux sendfile: Fix handling of non-blocking sockets

FreeBSD sendfile() may perform a partial transfer and return EAGAIN if
the socket is non-blocking. Linux sendfile() expects no error in this
case, so squash EAGAIN.

PR: 282495
Tested by: pieter@krikkit.xyz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47447

(cherry picked from commit a43b745aaf4f5bbc96875d2ab3ec9bea8024eda4)

Details

Provenance
markjAuthored on Nov 13 2024, 2:15 PM
Differential Revision
D47447: linux sendfile: Fix handling of non-blocking sockets
Parents
rG4a768794b836: release: Add missing dependencies in the minimal OCI image
Branches
Unknown
Tags
Unknown