-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* test: repro for #8210 (EACCESS if sendfile fails) What's happening here is: - input and output files are open - sendfile is attempted and fails - both files are closed - input file is opened again - output file is opened again (but already exists) This throws an error if the output file is not writable. Signed-off-by: Etienne Millon <me@emillon.org> * refactor: use Exn.protect instead of protectx (#8235) This adds a layer of rebinding that obscures what is going on. Signed-off-by: Etienne Millon <me@emillon.org> * fix(sendfile): unlink dst before fallback (#8234) Fixes #8210 If the `sendfile` branch failed, it leaves an empty target file, so retrying will fail. Instead we reuse the fd directly. Signed-off-by: Etienne Millon <me@emillon.org> --------- Signed-off-by: Etienne Millon <me@emillon.org>
- Loading branch information
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters