feat: upgrade to V2.4, add compatibility mode and fix stale lock issues

This commit is contained in:
YuleBest committed 2026-06-02 04:02:04 +08:00
1 parent 86ca5f382f
commit f2c489e3d6
4 files changed
+14 -5

No files matched your search

+1
View File
@@ -63,6 +63,7 @@ if [ -f "$lock_file" ]; then
exit 0
fi
# PID 不存在,说明是遗留的锁,清理之
_log "检测到遗留的锁文件 (PID: $old_pid 不存在),已自动清除" "WARN"
rm -f "$lock_file"
fi
echo $$ >"$lock_file"