summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/kwsys/ProcessWin32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c
index 582772b..7f3b03f 100644
--- a/Source/kwsys/ProcessWin32.c
+++ b/Source/kwsys/ProcessWin32.c
@@ -1268,6 +1268,7 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, char** data, int* length,
{
/* The process timeout has expired. Kill the child now. */
kwsysProcess_Kill(cp);
+ cp->State = kwsysProcess_State_Expired;
cp->TimeoutExpired = 1;
cp->Killed = 0;
return kwsysProcess_Pipe_None;