Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cross platform library to verify if a process is alive

License

Notifications You must be signed in to change notification settings

caido/process_alive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 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

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /