File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
- Do not read from ` errno ` when ` libc ` did not indicate error on Solaris [ #448 ]
24
24
- Switch from ` libpthread ` 's mutex to ` futex ` on Linux and to ` nanosleep ` -based wait loop
25
25
on other targets in the ` use_file ` backend [ #490 ]
26
+ - Do not retry on ` EAGAIN ` while polling ` /dev/random ` on Linux [ #522 ]
26
27
27
28
### Added
28
29
- ` wasm32-wasip1 ` and ` wasm32-wasip2 ` support [ #499 ]
@@ -44,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
44
45
[ #512 ] : https://github.com/rust-random/getrandom/pull/512
45
46
[ #520 ] : https://github.com/rust-random/getrandom/pull/520
46
47
[ #521 ] : https://github.com/rust-random/getrandom/pull/521
48
+ [ #522 ] : https://github.com/rust-random/getrandom/pull/522
47
49
48
50
## [ 0.2.15] - 2024-05-06
49
51
### Added
Original file line number Diff line number Diff line change @@ -191,8 +191,10 @@ mod sync {
191
191
break Ok ( ( ) ) ;
192
192
}
193
193
let err = last_os_error ( ) ;
194
+ // Assuming that `poll` is called correctly,
195
+ // on Linux it can return only EINTR and ENOMEM errors.
194
196
match err. raw_os_error ( ) {
195
- Some ( libc:: EINTR ) | Some ( libc :: EAGAIN ) => continue ,
197
+ Some ( libc:: EINTR ) => continue ,
196
198
_ => break Err ( err) ,
197
199
}
198
200
} ;
You can’t perform that action at this time.
0 commit comments