Skip to content

[3.13] gh-154324: Fix os.sendfile() error reporting on illumos (GH-154327) - #154834

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-e3634bb-3.13
Jul 28, 2026
Merged

[3.13] gh-154324: Fix os.sendfile() error reporting on illumos (GH-154327)#154834
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-e3634bb-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

illumos sendfile(3EXT) returns the number of transferred bytes by adding
it to the offset without initializing it, so the offset cannot be used to
detect a partial write. Use sendfilev(3EXT), which reports the number of
transferred bytes in an explicit out parameter.
(cherry picked from commit e3634bb)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

…GH-154327)

illumos sendfile(3EXT) returns the number of transferred bytes by adding
it to the offset without initializing it, so the offset cannot be used to
detect a partial write.  Use sendfilev(3EXT), which reports the number of
transferred bytes in an explicit out parameter.
(cherry picked from commit e3634bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 28, 2026 17:15
@serhiy-storchaka
serhiy-storchaka merged commit a2e7f9f into python:3.13 Jul 28, 2026
43 checks passed
@miss-islington
miss-islington deleted the backport-e3634bb-3.13 branch July 28, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants