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:
commit
75d71a4a95
@ -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
619
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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::*;
|
||||
|
||||
|
14
pueue_lib/src/process_helper/netbsd.rs
Normal file
14
pueue_lib/src/process_helper/netbsd.rs
Normal 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 {};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user