1
1
mirror of https://github.com/Nukesor/pueue.git synced 2024-10-03 19:27:25 +03:00

Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Cherry 2024-09-21 15:01:26 -07:00
commit 75d71a4a95
No known key found for this signature in database
GPG Key ID: 8B5DD74E59C6C5AB
5 changed files with 284 additions and 353 deletions

View File

@ -49,6 +49,7 @@ TLDR: The new task state representation is more verbose but significantly cleane
### Add
- Add support for NetBSD.
- Add `--all` and `--group` to `pueue log`. [#509](https://github.com/Nukesor/pueue/issues/509)
- Add `--all` and `--group` to `pueue enqueue`. [#558](https://github.com/Nukesor/pueue/issues/558)
- Add `--all` and `--group` to `pueue stash`. [#558](https://github.com/Nukesor/pueue/issues/558)

619
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -66,7 +66,7 @@ windows-service = "0.7.0"
windows = { version = "0.58.0", features = ["Win32_System_RemoteDesktop", "Win32_Security", "Win32_System_Threading", "Win32_System_SystemServices", "Win32_System_Environment"] }
# Test specific dev-dependencies
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "netbsd"))'.dependencies]
whoami = "1"
# Test specific Linux dev-dependencies

View File

@ -22,6 +22,7 @@ use command_group::Signal;
#[cfg_attr(target_vendor = "apple", path = "apple.rs")]
#[cfg_attr(target_os = "windows", path = "windows.rs")]
#[cfg_attr(target_os = "freebsd", path = "freebsd.rs")]
#[cfg_attr(target_os = "netbsd", path = "netbsd.rs")]
mod platform;
pub use self::platform::*;

View File

@ -0,0 +1,14 @@
use std::path::Path;
/// Check, whether a specific process is exists or not
pub fn process_exists(pid: u32) -> bool {
return Path::new(&format!("/proc/{}", pid)).is_dir();
}
#[cfg(test)]
pub mod tests {
/// Get all processes in a process group
pub fn get_process_group_pids(pgrp: i32) -> Vec<i32> {
return {};
}
}