summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-02 09:10:04 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-02 09:10:04 (EDT)
commite0052f38f4fbd4ac1928461d5315fd2215e6dc57 (patch)
tree2b7ecf4aeb87bd41ba0bf5b06ba2077eec2a5227
parent6ec1e9f770607bf0f4c1bfd1606b98e3ca6cdeb1 (diff)
unlock(): New function.
Separate this from fini() and have fini() call it.
-rw-r--r--src/pro-archman.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index f2a4e77..2494e96 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -177,7 +177,11 @@ fini()
{
update_feeds
collect_garbage
+ unlock
+}
+unlock()
+{
rm -f "${lock}"
}