|
NAMEsetlock - run a program with a file lockedSYNTAXsetlock [ -nNxX ] file program [ arg ... ]DESCRIPTIONsetlock opens file for writing (creating it if it does not exist), obtains an exclusive lock on it, and runs program.Normally the lock disappears when program exits. (Here's the complete story: program is given a descriptor for a locked ofile pointing to file. The lock disappears when this ofile is (1) closed by all the processes that have descriptors for it or (2) explicitly unlocked.) OPTIONS
SEE ALSOflock(2), lockf(3) Visit the GSP FreeBSD Man Page Interface. |