8000 bpo-41687: Fix sendfile implementation to work with Solaris by kulikjak · Pull Request #22040 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41687: Fix sendfile implementation to work with Solaris #22040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 5, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment summarizing the issue
  • Loading branch information
kulikjak committed Sep 2, 2020
commit 94cbb652e0e62d5698f04a1384e5339dc410d14e
2 changes: 2 additions & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -9519,6 +9519,8 @@ os_sendfile_impl(PyObject *module, int out_fd, int in_fd, PyObject *offobj,
return NULL;

#if defined(__sun) && defined(__SVR4)
// On Solaris, sendfile raises EINVAL rather than returning 0
// when the offset is equal or bigger than the in_fd size.
int res;
struct stat st;

Expand Down
0