HomeFreeBSD

Make sendfile(2) more robust against file change. This fixes a possible

Description

Make sendfile(2) more robust against file change. This fixes a possible
crash when the file shrinks. This also fixes sendfile(2) not sending more
data in a case when the file grows, and the request is open-ended or
specifies a size that is greater than old file size.

PR: 217789
Reviewed by: gallatin
MFC after: 10 days

Details

Committed
glebiusMar 24 2017, 4:01 PM
Reviewer
gallatin
Parents
rS315909: Restore the NULL check that was removed in upstream r913. It is not
Branches
Unknown
Tags
Unknown