diff options
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/macos.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/platform/macos.rs b/src/platform/macos.rs index 2e9b83b5..987f5f54 100644 --- a/src/platform/macos.rs +++ b/src/platform/macos.rs @@ -21,7 +21,7 @@ pub fn foreground_job(child_pid: u32) -> Option<ForegroundJob> { let Some(info) = process_bsdinfo(pid) else { continue; }; - if info.pbi_pgid as u32 != fg_pgid { + if info.pbi_pgid != fg_pgid { continue; } @@ -191,14 +191,6 @@ fn kern_procargs2(pid: u32) -> Option<Vec<u8>> { } } -/// Fallback: read `pbi_comm` from `proc_pidinfo(PROC_PIDTBSDINFO)`. -/// -/// This is the kernel-level short command name (like `node`, `zsh`). -/// It does NOT reflect `process.title` changes. -fn process_comm_name(pid: u32) -> Option<String> { - process_bsdinfo(pid).and_then(|info| comm_from_bsdinfo(&info)) -} - pub fn write_clipboard(bytes: &[u8]) -> bool { run_clipboard_command( &ClipboardCommand { |
