conditionally include process divination for quit-confirm check on any win/linux/osx instead of all
This commit is contained in:
1 parent
abf8235191
commit
7ae05b5333
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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]
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user