-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustuv: Handle short writes in uv_fs_write
The libuv fs wrappers are very thin wrappers around the syscalls they correspond to, and a notable worrisome case is the write syscall. This syscall is not guaranteed to write the entire buffer provided, so we may have to continue calling uv_fs_write if a short write occurs. Closes #13130
- Loading branch information
1 parent
1f5571a
commit 5fddb42
Showing
3 changed files
with
32 additions
and
11 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
5fddb42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at alexcrichton@5fddb42
5fddb42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging alexcrichton/rust/issue-13130 = 5fddb42 into auto
5fddb42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alexcrichton/rust/issue-13130 = 5fddb42 merged ok, testing candidate = 82c8cb2
5fddb42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4890
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4887
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3983
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3991
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4990
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4077
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4085
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4992
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4077
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4082
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/4148
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1881
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4988
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4088
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4096
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4751
5fddb42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 82c8cb2