diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs index 7f434f5..89061f7 100644 --- a/src/input.rs +++ b/src/input.rs @@ -79,8 +79,10 @@ impl Drop for RawGuard { // doesn't literally call `cleanup`, because calling spawn_blocking // while the tokio runtime is in the process of shutting down doesn't // work (spawn_blocking tasks are cancelled if the runtime starts - // shutting down before the task body starts running), but should be - // kept in sync with the actual things that `cleanup` does. + // shutting down before the task body starts running), and using + // block_in_place/block_on doesn't work on the current_thread runtime, + // but should be kept in sync with the actual things that `cleanup` + // does. if let Some(termios) = self.termios.take() { let stdin = std::io::stdin().as_raw_fd(); let _ = nix::sys::termios::tcsetattr( |