changeset 19893:8ec8deb54cef draft

(svn r24826) -Fix: determineversion.vbs could hang in a git checkout
author glx <glx@openttd.org>
date Wed, 19 Dec 2012 02:42:25 +0000
parents 7afc2411c90b
children 4636f2d95466
files projects/determineversion.vbs
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -177,6 +177,9 @@
 				' Make sure index is in sync with disk
 				Set oExec = WshShell.Exec("git update-index --refresh")
 				If Err.Number = 0 Then
+					' StdOut and StdErr share a 4kB buffer so prevent it from filling up as we don't care about the output
+					oExec.StdOut.Close
+					oExec.StdErr.Close
 					' Wait till the application is finished ...
 					Do While oExec.Status = 0
 						WScript.Sleep 10