Re: My service crashes during shutdown
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Fri, 18 Nov 2005 15:02:22 +0200
> Right now when I receive SERVICE_CONTROL_STOP I tell my service thread
> to stop (what takes some time), set status to SERVICE_STOP_PENDING and
> return from service control function.
> In other words the service control function returns before the service
> thread finishes.
> Can this be a source of a problem?
Probably not (unless there is a race condition specific to the implementation
of this particular server).
> Should I force service control function to wait until service thread is
> done?
>
No, it is not necessary. It is enough to notify the service thread
that it should stop.
Regards,
Oleg
[VC++ MVP]
.
- References:
- My service crashes during shutdown
- From: si
- My service crashes during shutdown
- Prev by Date: Re: How can I authenticate a user using the security blob provided in SessionSetupAndX CIFS/SMB request
- Next by Date: 2 questions about a filter registered with SetUnhandledExceptionFilter?
- Previous by thread: My service crashes during shutdown
- Next by thread: How to stop screensaver child processes from terminating in XP when screen saver exits?
- Index(es):