From: mturk Date: Fri, 12 Mar 2010 11:38:43 +0000 (+0000) Subject: Suppress anoying Terminate batch job prompt when hitting CTRL+C. Note however that... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=460df82078ff3716ac5aa96a21043e4dd7bb23e5;p=tomcat7.0 Suppress anoying Terminate batch job prompt when hitting CTRL+C. Note however that it leaves the file named yes in the bin directory git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922223 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bin/catalina.bat b/bin/catalina.bat index 484e8d9c4..5e7325352 100755 --- a/bin/catalina.bat +++ b/bin/catalina.bat @@ -78,6 +78,17 @@ rem rem $Id$ rem --------------------------------------------------------------------------- +rem Suppress Terminate batch job on CTRL+C +if not ""%1"" == ""run"" goto mainEntry +if exist "%~dp0run" goto mainEntry +echo Y >"%~dp0run" +echo Y >"%~dp0yes" +call "%~dpnx0" %* <"%~dp0yes" +rem Not actually needed +exit /B 1 +:mainEntry +del /Q "%~dp0run" >NUL 2>&1 + rem Guess CATALINA_HOME if not defined set "CURRENT_DIR=%cd%" if not "%CATALINA_HOME%" == "" goto gotHome