BUG: make sure the correct state is set for expired processes

This commit is contained in:
Bill Hoffman 2004-05-07 12:52:46 -04:00
parent c1d9c2ce9c
commit 99a1ec6c6d
1 changed files with 1 additions and 0 deletions

View File

@ -1268,6 +1268,7 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, char** data, int* length,
{ {
/* The process timeout has expired. Kill the child now. */ /* The process timeout has expired. Kill the child now. */
kwsysProcess_Kill(cp); kwsysProcess_Kill(cp);
cp->State = kwsysProcess_State_Expired;
cp->TimeoutExpired = 1; cp->TimeoutExpired = 1;
cp->Killed = 0; cp->Killed = 0;
return kwsysProcess_Pipe_None; return kwsysProcess_Pipe_None;