Skip to content

caido/process_alive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Alive

github crates.io

This is a small cross platform crate to check if a process is alive. Inspired by sysinfo, but without the need to parse through all the processes to verify one. Since there can be some errors related to permissions, the state can be Unknown and you can decide how you want to handle it.

use process_alive::{State, Pid};

pub fn main() {
  let pid = Pid::from(1234);
  let state = process_alive::state(pid);
  println("Process {} is {}", pid, state);
}

About

Cross platform library to verify if a process is alive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages