Definition at line 217 of file Manager4Windows.h. References ILOG_ERROR, MAX_NORMAL_EXIT_CODES, mProcesses, Impala::Process::Manager::STATE_TERM_ABNORMAL, and Impala::Process::Manager::STATE_UNKNOWN. 00218 { 00219 if (::TerminateProcess(winHandle, MAX_NORMAL_EXIT_CODES+1)) // might compromise global DLL data; see Platform SDK doc 00220 { 00221 mProcesses[handle].stateCode = STATE_TERM_ABNORMAL; 00222 } 00223 else 00224 { 00225 DWORD err = GetLastError(); 00226 ILOG_ERROR("Failed to terminate process with handle " << handle << 00227 " (erro code " << err << ")"); 00228 mProcesses[handle].stateCode = STATE_UNKNOWN; 00229 } 00230 }
|