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:
parent
416c700841
commit
6650879260
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user