Crates.io | pidfile-rs |
lib.rs | pidfile-rs |
version | 0.2.0 |
source | src |
created_at | 2020-11-02 11:59:48.974805 |
updated_at | 2024-01-09 11:24:19.882368 |
description | Rust wrapper for pidfile_* functions from libbsd/libutil |
homepage | |
repository | https://github.com/andrewshadura/bsd-pidfile-rs |
max_upload_size | |
id | 307831 |
size | 15,014 |
This crate provides a wrapper for a family of pidfile_*
functions provided in the BSD systems by libutil, and elsewhere by libbsd.
Known alternatives in pure Rust:
The BSD pidfile functions employ very clever locking mechanism, detect concurrently running daemons and allow deferring writes to the PID file, so potential errors can be handled before a fork.
The ultimate goal is to rewrite these functions in Rust, but until a rewrite is done, it’s best to use the BSD functions using the FFI.
MIT license, also known as the Expat license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.