Marcin Mielniczuk
5 years ago
No known key found for this signature in database
GPG Key ID: 2CF0CE66660B8CC9
1 changed files with
2 additions and
0 deletions
-
crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs
|
@ -167,6 +167,7 @@ pub(crate) fn poll_oneoff( |
|
|
|
|
|
|
|
|
// Process all the events that do not require waiting.
|
|
|
// Process all the events that do not require waiting.
|
|
|
if !immediate_events.is_empty() { |
|
|
if !immediate_events.is_empty() { |
|
|
|
|
|
trace!(" | have immediate events, will return immediately"); |
|
|
for mut event in immediate_events { |
|
|
for mut event in immediate_events { |
|
|
let size = match event.descriptor { |
|
|
let size = match event.descriptor { |
|
|
Descriptor::OsHandle(os_handle) => { |
|
|
Descriptor::OsHandle(os_handle) => { |
|
@ -190,6 +191,7 @@ pub(crate) fn poll_oneoff( |
|
|
events.push(new_event) |
|
|
events.push(new_event) |
|
|
} |
|
|
} |
|
|
} else if !stdin_events.is_empty() { |
|
|
} else if !stdin_events.is_empty() { |
|
|
|
|
|
trace!(" | actively polling stdin"); |
|
|
// There are some stdin poll requests and there's no data available immediately
|
|
|
// There are some stdin poll requests and there's no data available immediately
|
|
|
|
|
|
|
|
|
// We are busy-polling the stdin with delay, unfortunately.
|
|
|
// We are busy-polling the stdin with delay, unfortunately.
|
|
|