summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-05-13 14:08:09 (GMT)
committerBrad King <brad.king@kitware.com>2004-05-13 14:08:09 (GMT)
commitb6fb2fe8f9d1acf9a2fe3b6560d906264a38c596 (patch)
tree58f02f585a09f6f5a8f6f4d26d0af02dac2d8847 /Source
parent5b145fe592f447e8f2f42445e5a2d68a00e1205c (diff)
downloadCMake-b6fb2fe8f9d1acf9a2fe3b6560d906264a38c596.zip
CMake-b6fb2fe8f9d1acf9a2fe3b6560d906264a38c596.tar.gz
CMake-b6fb2fe8f9d1acf9a2fe3b6560d906264a38c596.tar.bz2
BUG: Do not wait for children to exit when killing them. Sometimes they do not really die.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/ProcessWin32.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c
index a184367..9e42e05 100644
--- a/Source/kwsys/ProcessWin32.c
+++ b/Source/kwsys/ProcessWin32.c
@@ -1268,7 +1268,6 @@ 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;
@@ -1409,11 +1408,8 @@ void kwsysProcess_Kill(kwsysProcess* cp)
}
}
- /* Wait for windows to finish cleaning up the children. */
- for(i=0; i < cp->NumberOfCommands; ++i)
- {
- WaitForSingleObject(cp->ProcessInformation[i].hProcess, INFINITE);
- }
+ /* We are killing the children and ignoring all data. Do not wait
+ for them to exit. */
}
/*--------------------------------------------------------------------------*/