fix: address CUPS runtime review findings and add regression tests

This commit is contained in:
Codex
2026-09-11 13:19:37 +08:00
parent 6051b05676
commit 5f49605d24
7 changed files with 490 additions and 38 deletions
+3 -1
View File
@@ -46,7 +46,9 @@ acquire_lock() {
echo "$(date '+%Y-%m-%d %H:%M:%S') [network-watchdog] another run is active"
exit 0
fi
trap 'rmdir "$lock_dir" 2>/dev/null || true' EXIT
trap 'rmdir "$STATE_DIR/network.lock" 2>/dev/null || true' EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
}
rotate_log() {
+3 -1
View File
@@ -35,7 +35,9 @@ acquire_lock() {
echo "$(date '+%Y-%m-%d %H:%M:%S') [print-watchdog] another run is active"
exit 0
fi
trap 'rmdir "$lock_dir" 2>/dev/null || true' EXIT
trap 'rmdir "$STATE_DIR/print.lock" 2>/dev/null || true' EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
}
rotate_log() {