feat: Verify required RAM per Windows version (#2085)

This commit is contained in:
Kroese
2026-08-07 03:41:14 +02:00
committed by GitHub
parent 65fe8ada74
commit 43d0478f7e
4 changed files with 21 additions and 50 deletions
+15 -9
View File
@@ -530,15 +530,21 @@ gracefulShutdown() {
finish "$code"
}
enabled "$SHUTDOWN" || return 0
enableTrap() {
enabled "$SHUTDOWN" || return 0
# Keep Ctrl-C available to interactive users without installing an unnecessary
# SIGINT handler for background/container execution.
if interactive; then
_trap gracefulShutdown SIGINT
fi
_trap gracefulShutdown SIGTERM SIGHUP SIGABRT SIGQUIT
return 0
}
[ -n "${QEMU_TIMEOUT:-}" ] && TIMEOUT="$QEMU_TIMEOUT"
# Keep Ctrl-C available to interactive users without installing an unnecessary
# SIGINT handler for background/container execution.
if interactive; then
_trap gracefulShutdown SIGINT
fi
_trap gracefulShutdown SIGTERM SIGHUP SIGABRT SIGQUIT
return 0