BUG: make sure the correct state is set for expired processes
This commit is contained in:
parent
c1d9c2ce9c
commit
99a1ec6c6d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue