Explorar el Código

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

Bill Hoffman hace 21 años
padre
commit
99a1ec6c6d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Source/kwsys/ProcessWin32.c

+ 1 - 0
Source/kwsys/ProcessWin32.c

@@ -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;