diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-12 15:05:36 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-12 15:05:36 +0300 |
| commit | 8375922c069a244133d083a0bb50273e134be6b1 (patch) | |
| tree | a1545b29f1cfd249650fe83ba7344abedc7d3d98 /src | |
| parent | af4db0f7699e6fa46ea8ba6dc414fe3d6395c5bb (diff) | |
ci: run checks on macos
Diffstat (limited to 'src')
| -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 { |
