On May 20, 2007, at 5:43 PM, Timo Sirainen wrote:

If the lock file is really stale, updating mtime might cause the lock to
never be overwritten.

Would it work if you chown()ed the lock file to its current uid/gid
(that lstat() returned) instead?

Yes, that worked as well.  I've attached the diff for what I changed.

Thanks for the suggestion.

-Doug

Attachment: file-dotlock.c.diff
Description: Binary data


Reply via email to