6 releases
0.1.6 | Dec 16, 2023 |
---|---|
0.1.4 | Jan 20, 2021 |
0.1.2 | Jun 4, 2018 |
0.1.1 | May 19, 2018 |
#273 in Filesystem
1,030 downloads per month
Used in 13 crates
(via amdgpu)
13KB
288 lines
pidlock
A library for working with pidfiles, with a lock-like API.
Usage
extern crate pidlock;
fn main() {
let mut lock = pidlock::Pidlock::new("/path/to/pidfile.pid");
lock.acquire().unwrap();
...
lock.release().unwrap();
}
License
pidlock is licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Dependencies
~0–12MB
~74K SLoC