Skip to main content

holder

Function holder 

Source
fn holder(pid: u32) -> Holder
Expand description

Linux answers this from /proc, which needs no dependency and no unsafe. Everywhere else the honest answer is that we cannot tell, and the safe one is to leave the lock alone: a lock wrongly broken means two writers appending to one log, while a lock wrongly kept means one read-only session and a file the user can delete.