conditionally include process divination for quit-confirm check on any win/linux/osx instead of all

This commit is contained in:
Dian M Fay authored and Wez Furlong committed 2021-04-22 23:08:53 -07:00
1 parent abf8235191
commit 7ae05b5333
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ url = "2"
wezterm-ssh = { path = "../wezterm-ssh" }
wezterm-term = { path = "../term", features=["use_serde"] }
[target.'cfg(all(windows, target_os="linux", target_os="macos"))'.dependencies]
[target.'cfg(any(windows, target_os="linux", target_os="macos"))'.dependencies]
sysinfo = "0.16"
[dev-dependencies]
+1 -1
View File
@@ -598,7 +598,7 @@ impl LocalPane {
#[allow(unused_mut)]
let mut proc_names = vec![];
#[cfg(all(windows, target_os = "linux", target_os = "macos"))]
#[cfg(any(windows, target_os = "linux", target_os = "macos"))]
if let ProcessState::Running { child, .. } = &*self.process.borrow() {
if let Some(pid) = child.process_id() {
use sysinfo::{Pid, ProcessExt, RefreshKind, System, SystemExt};