services: Don't close the overlapped event when terminating a service.
An overlapping I/O operation may still be in progress.
This commit is contained in:
parent
8ab65c222e
commit
154aef98d8
|
@ -861,8 +861,6 @@ void service_terminate(struct service_entry *service)
|
|||
TerminateProcess(service->process, 0);
|
||||
CloseHandle(service->process);
|
||||
service->process = NULL;
|
||||
CloseHandle(service->overlapped_event);
|
||||
service->overlapped_event = NULL;
|
||||
CloseHandle(service->status_changed_event);
|
||||
service->status_changed_event = NULL;
|
||||
CloseHandle(service->control_mutex);
|
||||
|
|
Loading…
Reference in New Issue