HomeFreeBSD

cp: Expect EINTR while copying

Description

cp: Expect EINTR while copying

Both copy_file_range() and copy_fallback() can be interrupted before
they have read anything at all, in which case they return -1 and set
errno to EINTR. If that happens, we should retry, not fail.

PR: 293028
MFC after: 1 week
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55167

Details

Provenance
desAuthored on Feb 11 2026, 4:24 PM
Reviewer
kevans
Differential Revision
D55167: cp: Expect EINTR while copying
Parents
rG89589b6d3fba: amd64: add LASS support
Branches
Unknown
Tags
Unknown