Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

fix(run): keep the rebuild lock file when checking whether the app holds it

kevicebryanb31529813af0
diff --git a/dylib/feats/compat_run.sh b/dylib/feats/compat_run.sh
index e31f310..28e064d 100755
--- a/dylib/feats/compat_run.sh
+++ b/dylib/feats/compat_run.sh
@@ -1133,7 +1133,7 @@ run_rebuild() {
sleep 1
waited=$((waited + 1))
# Nothing holds the lock once the app is gone. The grace covers its startup.
- if [ "$waited" -gt 30 ] && /usr/bin/lockf -s -t 0 "$rebuild_lock" true 2>/dev/null; then
+ if [ "$waited" -gt 30 ] && /usr/bin/lockf -k -s -t 0 "$rebuild_lock" true 2>/dev/null; then
sleep 2
[ -f "$rebuild_exit" ] || return 1
fi