The work-around isn't valid. The lock file must be a hardlink due to how enqueue/dequeue works, and the nlinks tests. As a result, the simple solution is to just wrap link() in PRIV_START/PRIV_END.
The work-around isn't valid. The lock file must be a hardlink due to how enqueue/dequeue works, and the nlinks tests. As a result, the simple solution is to just wrap link() in PRIV_START/ PRIV_END.