From 2d20be3d99b260e55798866292c46340e8f183f9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 31 Aug 2025 21:30:29 +0100 Subject: init.sh: remove unnecessary lockfile checks we don't need these anymore, because we now know whether or not the lock file exists in these cases. this is because child/parent instance determination is now done based on the presence of that file, rather than how TMPDIR is set; and TMPDIR is now set accordingly, via more robust logic as in previous patching. Signed-off-by: Leah Rowe --- include/init.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/init.sh b/include/init.sh index b16d0075..557f7d57 100644 --- a/include/init.sh +++ b/include/init.sh @@ -78,7 +78,6 @@ xbmk_set_env() xbmk_parent_check_tmp - [ -f "$xbmklock" ] && err "'$xbmklock' exists. Is a build running?" printf "%s\n" "$xbtmp" > "$xbmklock" || \ err "cannot create '$xbmklock'"; : @@ -139,8 +138,7 @@ xbmk_child_set_tmp() export TMPDIR="$xbtmpchk" [ -z "${XBMK_CACHE+x}" ] && err "XBMK_CACHE unset on child" - [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads - e "lock" f missing && err "lock file absent on child" + [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads; : } xbmk_parent_check_tmp() -- cgit v1.2.1