diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:20:12 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:20:12 +0300 |
| commit | 787786c62009f6c27a0091b61017ae5ad5c95c0e (patch) | |
| tree | e0c21aec008cae69e79514c6c6a25c9d4f411fdf /src/platform/mod.rs | |
| parent | 0403775fd2a9458417c5349d5441125ab9b2553c (diff) | |
fix wrapped foreground job agent detection
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs index df8869c7..ade86249 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -3,6 +3,20 @@ //! Centralizes OS-dependent behavior behind a clean boundary so core //! modules don't scatter `#[cfg]` branches through product logic. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ForegroundProcess { + pub pid: u32, + pub name: String, + pub argv0: Option<String>, + pub cmdline: Option<String>, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ForegroundJob { + pub process_group_id: u32, + pub processes: Vec<ForegroundProcess>, +} + #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] |
