From f98b64e545763aa7d593cb05dcf2a315293bf551 Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Sun, 19 Jul 2026 23:34:10 +0300 Subject: [PATCH] win: do not close the calling console when build-deps.cmd finishes A bare exit terminates the whole cmd.exe process, so running build-deps.cmd from a Visual Studio command prompt closed the window on completion and any errors were unreadable. exit /b returns from the script with the same code and leaves the shell open, as prescribed in issue 7413. The script's only other window-closing exit paths already use exit /b. Generated with the assistance of an AI coding tool. --- win/build-deps.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/build-deps.cmd b/win/build-deps.cmd index 8e543f1093..f491c719b8 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -837,7 +837,7 @@ echo Build ended at %END_TIME%. Time elapsed %hh%:%mm%:%ss%.%cc%. :BuildTimeSkipped set PATH=%ORIGINAL_PATH% cd "%~dp0" -exit %IFCOS_SCRIPT_RET% +exit /b %IFCOS_SCRIPT_RET% ::::::::::::::::::::::::::::::::::::: Subroutines :::::::::::::::::::::::::::::::::::::