/var/lock doesn't exist in OSX, so where do the lock files / PID files go?
|
|
|
Locking is more complicated (or simple depending on your POV) with the system/API arbitrating device locks rather than writing them to the filesystem. Do consider the implications of fast user switching and the documentation on Multiple User Environments or simply calling |
||||
|
|
Wherever you want to there is no standard place for lock files in Unix. Only the Linux Filesystem Hierarchy Standard provides for /var/loc See Wikipaedia for some examples of the hierarchies used from there is FreeBsd As for direct OSX references see NSDistributedLock which gives no directions or example of paths to be used and shlock which gives the BSD example in /tmp |
|||
|
|
