*-util-functions.sh: genericize v_lock_gc into v_lock_file
commitdd493b1e4f116d26398edd5eea342089e60568e7
authorKyle J. McKay <mackyle@gmail.com>
Sun, 13 Sep 2020 05:47:10 +0000 (12 22:47 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 13 Sep 2020 05:47:10 +0000 (12 22:47 -0700)
treec4ca2804dffa5a5e311b54da739dc4f7786c7255
parentc9b5cff75e6810b6de4cba9ed728b4b8789c91f6
*-util-functions.sh: genericize v_lock_gc into v_lock_file

Rename v_lock_gc function in updategc-util-functions.sh to
v_lock_file and add an additional parameter to specify the
name of the lock file to create.

Add a v_lock_gc function back to gc-util-functions.sh that
calls the new v_lock_file function with "gc.pid" as the
second argument.

This makes the lock file functionality available for future
use with file names other than "gc.pid".

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc-util-functions.sh
jobd/updategc-util-functions.sh