From efa37b6a2eda4d6c6fac3871dddab5481d4482b1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 31 Dec 2023 11:02:05 +0100 Subject: [PATCH] Add back poll of change signaller after adding starting fd monitor This was missed in ce559bc20 (Port fd_monitor (and its needed components), 2023-02-17). Fixes the wrong color in echo (set_color yellow; date +%T; set_color blue) as reported in https://github.com/fish-shell/fish-shell/issues/10176#issuecomment-1872658589 --- fish-rust/src/fd_monitor.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish-rust/src/fd_monitor.rs b/fish-rust/src/fd_monitor.rs index 05c237abb..3bbb1c7e4 100644 --- a/fish-rust/src/fd_monitor.rs +++ b/fish-rust/src/fd_monitor.rs @@ -517,6 +517,9 @@ pub fn add(&self, mut item: FdMonitorItem) -> FdMonitorItemId { }); } + // Tickle our signaller. + self.change_signaller.post(); + item_id }