2 releases

0.1.1 Aug 18, 2024
0.1.0 Aug 18, 2024

#621 in Filesystem

Download history 22/week @ 2024-09-11 18/week @ 2024-09-18 18/week @ 2024-09-25 72/week @ 2024-10-02 10/week @ 2024-10-09 92/week @ 2024-10-16 42/week @ 2024-10-23 44/week @ 2024-10-30 26/week @ 2024-11-06 22/week @ 2024-11-13 42/week @ 2024-11-20 22/week @ 2024-11-27 143/week @ 2024-12-04 32/week @ 2024-12-11 18/week @ 2024-12-18 134/week @ 2024-12-25

331 downloads per month
Used in hydiscovery

MIT license

13KB
190 lines

pidfile: PID file locking and management with RAII semantics

crate Docs Build Status MIT licensed

PID files are a crude form of locking which uses the filesystem to ensure that only one instance of a program is running at a time. This crate provides a simple API for creating and managing PID files in a way that is safe and easy to use. PID Files will be cleaned up on drop, and can be checked for existence and validity.

There is already a pidfile crate, but it is not updated. This one is a more modern approach to the same problem, and on crates.io as pidfile2.

Dependencies

~305–455KB