brunoczim / fslock

File locking for Rust.
MIT License
40 stars 11 forks source link

Add method to display the PID of the process that owns the lockfile #13

Open adumbidiot opened 2 years ago

adumbidiot commented 2 years ago

Due to issues like #6, its hard to retrieve the PID of the process that owns the lockfile if a lock could not be acquired. A method that operates on the lockfile's fd to retrieve the PID would be easier.