Marcin Mielniczuk
5 years ago
No known key found for this signature in database
GPG Key ID: 2CF0CE66660B8CC9
1 changed files with
1 additions and
0 deletions
-
crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs
|
@ -130,6 +130,7 @@ pub(crate) fn poll_oneoff( |
|
|
return Ok(()); |
|
|
return Ok(()); |
|
|
} |
|
|
} |
|
|
None => { |
|
|
None => { |
|
|
|
|
|
// `poll` invoked with nfds = 0, timeout = -1 appears to be an infinite sleep
|
|
|
// The thread is not guanteed to remain parked forever, so we need to loop
|
|
|
// The thread is not guanteed to remain parked forever, so we need to loop
|
|
|
loop { |
|
|
loop { |
|
|
thread::park(); |
|
|
thread::park(); |
|
|