X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=storage.sh;h=8939fdc7c83fcb9bdde8cc1738ed1e4baabc3963;hp=1d8764be745b1c0168a7b56302fc42340be272de;hb=40c5373a1f5eb710635f340e88c31f8c9dfedfeb;hpb=595fbc514d410ccdd46a81b8736d3711ac1ca7fe diff --git a/storage.sh b/storage.sh index 1d8764b..8939fdc 100755 --- a/storage.sh +++ b/storage.sh @@ -42,7 +42,7 @@ LOCK(){ sleep 1 done printf '%i\n' $$ >"${lock}/pid" - return 1 + return 0 } RELEASE(){ @@ -54,6 +54,7 @@ RELEASE(){ printf '%i\n' $$ >"${lock}/pid" return 1 fi + return 0 else printf 'Refusing to release foreign lock: %s\n' "$lock" >&2 return 1