This commit is contained in:
Marcin Mielniczuk
2020-01-09 14:45:36 +01:00
parent 0b50274680
commit f20b5a4cac

View File

@@ -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.