]> git.pond.sub.org Git - empserver/commit
(service_main,main,shutdown) [_WIN32]: Add missing loc_NTTerm().
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 12 Mar 2005 04:35:09 +0000 (04:35 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 12 Mar 2005 04:35:09 +0000 (04:35 +0000)
commit014d005c69f246961cd96292ec7c0c245f8691b2
treedcc73828e5883b32d130fec45adfdde9eabc6fd3
parent6c7f707b76270dea38618a6b4fecf64179a8f73d
(service_main,main,shutdown) [_WIN32]: Add missing loc_NTTerm().

(service_main,main,shutdown,empth_exit,service_stopped) [_WIN32]:
Add shutdown Event to allow the service to shutdown.
When SERVICE_STOPPED is passed to SetServiceStatus() all
threads are kills this prevents shutdown() from executing.
The shutdown Event is used to block the service_main thread until
the stopping of the service is started.  After the shutdown() is
complete then the SetServiceStatus() is called.
src/lib/empthread/ntthread.c
src/lib/gen/service.c
src/server/main.c