Add function for creating a lock file atomically (?)
commitd8408f1357447d22b02d87124aeccc07a3e61ccd
authorRoger D. Peng [amelia] <rpeng@jhsph.edu>
Sat, 2 Aug 2008 23:59:15 +0000 (2 19:59 -0400)
committerRoger D. Peng [amelia] <rpeng@jhsph.edu>
Sat, 2 Aug 2008 23:59:15 +0000 (2 19:59 -0400)
tree202035b67325cf0d42d4f2afed038a11653a2f88
parent2929d92ea7b39f5341843c115d9973527387233a
Add function for creating a lock file atomically (?)

The 'open' system function in C will open a file if it doesn't exist
but will fail if it does.
src/lockfile.c [new file with mode: 0644]