A library for working with pidfiles, with a lock-like API.
extern crate pidlock;
fn main() {
let mut lock = pidlock::Pidlock::new("/path/to/pidfile.pid");
lock.acquire().unwrap();
...
lock.release().unwrap();
}
pidlock is licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)