mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
window: log/retry self-pipe-writes
At the bottom of https://github.com/wez/wezterm/issues/815 is some discussion about an apparent hang. Let's make the self pipe writing a bit more robust and log to see if that might be related.
This commit is contained in:
parent
930927fb69
commit
18ae2ccc8e
@ -154,7 +154,13 @@ impl SpawnQueue {
|
||||
use std::io::Write;
|
||||
|
||||
self.queue_func(f, high_pri);
|
||||
self.write.lock().unwrap().write(b"x").ok();
|
||||
while let Err(err) = self.write.lock().unwrap().write(b"x") {
|
||||
if err.kind() == std::io::ErrorKind::Interrupted {
|
||||
continue;
|
||||
}
|
||||
log::warn!("Failed to signal spawn queue pipe: {:#}", err);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
fn run_impl(&self) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user