file locking: fcntl vs. flock
file locking: fcntl vs. flock
- Subject: file locking: fcntl vs. flock
- From: William Andrew Burnson <email@hidden>
- Date: Sun, 31 Aug 2008 15:12:29 -0500 (CDT)
Hello,
I'm debugging someone's multiple instance preventer on Mac OS X Leopard. It operates using a file-based lock, using fcntl. However we found that this did not work in a networked environment with SMB filesystems because it returned errno 45 ENOTSUP (Operation not supported). Admin and local accounts performed the lock, but for a networked user, it failed. In a previous version, the code used flock, which does work, but apparently that isn't a general solution either because it doesn't do anything for AFP shares.
Does anyone know what a good solution would be for creating a file-based interprocess lock?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden