lock

Synopsis

lock [ -r ]

Description

check lock ; if it doesnt exist acquire it. fd 7 is used for lockfile and should not be used by calling scripts using this function.

Options

-r remove the lock