--- innwebd/thread_pool.cpp 2004/07/04 06:45:23 1.5 +++ innwebd/thread_pool.cpp 2004/07/04 23:35:00 1.7 @@ -153,9 +153,9 @@ int thread_pool::RemoveThread(ULONG ulTh } -int thread_pool::SetThreadStatus(ULONG ulThreadd, int uStatus) +int thread_pool::SetThreadStatus(ULONG ulThreadId, int uStatus) { - UINTT i; + UINT i; if (this->uThreadCount <= 0) { @@ -275,6 +275,7 @@ int thread_pool::EnableKillDeadThread(vo this->bTerminateThreadKiller = false; if (hThreadCurrent = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)thread_pool::KillDeadThread,(LPVOID)this,0,&ulThreadId)) { + CloseHandle(hThreadCurrent); syslog << logfile::log_head << "Create killer thread ... OK" << endl; } else