Skip to content
Snippets Groups Projects
Commit 189f8f27 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

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

parent f307285a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment