summaryrefslogtreecommitdiffstats
path: root/README.md
blob: c5ca11dd09e222ec5018c91d6043b7b1fe271f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pidlock
==

A library for working with pidfiles, with a lock-like API.

Usage
--

```
extern crate pidlock;

fn main() {
    let mut lock = pidlock::Pidlock("/path/to/pidfile.pid");
    lock.acquire().unwrap();

    ...

    lock.release().unwrap();
}
```

License
--

pidlock is licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)