pueue-lib 0.26.0

The shared library to work with the Pueue client and daemon.
Documentation
1
2
3
4
5
6
use libproc::libproc::{proc_pid, task_info};

/// Check, whether a specific process exists or not
pub fn process_exists(pid: u32) -> bool {
    proc_pid::pidinfo::<task_info::TaskInfo>(pid.try_into().unwrap(), 0).is_ok()
}