/* Process liveness for a stale lock. * * The folder backend clears a lock only when the writer that took it is gone. * The machine's own pid namespace is enough for that: a lock holds the pid that * wrote it, and `kill(pid, 0)` answers whether that process still exists. * EPERM means it exists but belongs to another user, which still counts. */ #ifndef KOH_PROCESS_H #define KOH_PROCESS_H /* 1 when the process exists, 0 when it does not (or the pid is nonsense). */ int koh_pid_alive(int pid); #endif