Commit 99a1ec6c authored by Bill Hoffman's avatar Bill Hoffman
Browse files

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

parent c1d9c2ce
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment