aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-27 13:51:27 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-27 13:51:27 +0100
commit3db752bc979be5f7eaff4f64e96d5f854b83eff5 (patch)
tree39d6cbe831c8ba6e87698dcffc302728cdea07ae
parentceaa83b83edb069ecf1cca181ec461519f0cc020 (diff)
global-functions: $ScriptLock: use $LogPrintExit
-rw-r--r--global-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/global-functions b/global-functions
index ed7363b..cdc7300 100644
--- a/global-functions
+++ b/global-functions
@@ -306,11 +306,12 @@
# lock script against multiple invocation
:set ScriptLock do={
+ :global LogPrintExit;
+
:local Script [ :tostr $1 ];
:if ([ / system script job print count-only where script=$Script ] > 1) do={
- :log debug ("Script " . $Script . " started more than once... Aborting.");
- :error "Locked."
+ $LogPrintExit info ("Script " . $Script . " started more than once... Aborting.") true;
}
}