HomeFreeBSD

sendfile: fix CURVNET_SET()/CURVNET_RESTORE()

Description

sendfile: fix CURVNET_SET()/CURVNET_RESTORE()

Keep it set around the main cycle that works with the socket and restore
before the cleanup path, cause there are jumps into cleanup that precede
the main cycle.

Fixes: 9a7d03c7df3536cdb5faf0848c6dab4a5d7bcef8

Details

Provenance
glebiusAuthored on May 6 2025, 8:00 PM
Parents
rG9208c8bf1874: unix: in sendfile method mark bufs as M_BLOCKED if not ready data present
Branches
Unknown
Tags
Unknown