Definition at line 195 of file Manager4Windows.h. References GetWinExitCode(), MAX_NORMAL_EXIT_CODES, mProcesses, Impala::Process::Manager::STATE_RUNNING, Impala::Process::Manager::STATE_TERM_ABNORMAL, Impala::Process::Manager::STATE_TERM_ERROR, and Impala::Process::Manager::STATE_TERM_SUCCESS. Referenced by GetState(). 00196 { 00197 if (mProcesses[handle].stateCode != STATE_RUNNING) 00198 return; 00199 00200 DWORD exitCodeWin = GetWinExitCode(winHandle, handle); 00201 if (exitCodeWin == STILL_ACTIVE) 00202 { 00203 // note that we ignore the possibility of the process 00204 // exiting with exactly this value! 00205 return; 00206 } 00207 00208 if (exitCodeWin == 0) 00209 mProcesses[handle].stateCode = STATE_TERM_SUCCESS; 00210 else if (exitCodeWin <= MAX_NORMAL_EXIT_CODES) 00211 mProcesses[handle].stateCode = STATE_TERM_ERROR; 00212 else 00213 mProcesses[handle].stateCode = STATE_TERM_ABNORMAL; 00214 return; 00215 }
Here is the call graph for this function:
|