1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 14:54:16 +03:00

move platform logic about LocalProcessInfo into procinfo crate

This commit is contained in:
Wez Furlong 2021-12-31 19:45:09 -07:00
parent 416c700841
commit 6650879260
2 changed files with 5 additions and 2 deletions

View File

@ -834,11 +834,9 @@ impl LocalPane {
}
fn divine_process_list(&self, _force_refresh: bool) -> Option<LocalProcessInfo> {
#[cfg(any(target_os = "macos", target_os = "linux", windows))]
if let ProcessState::Running { pid: Some(pid), .. } = &*self.process.borrow() {
return LocalProcessInfo::with_root_pid(*pid);
}
None
}
}

View File

@ -52,4 +52,9 @@ impl LocalProcessInfo {
flatten(self, &mut names);
names
}
#[cfg(not(any(target_os = "macos", target_os = "linux", windows)))]
pub fn with_root_pid(_pid: u32) -> Option<Self> {
None
}
}