summaryrefslogtreecommitdiff
path: root/vdservice
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2013-02-26 17:58:44 +0200
committerArnon Gilboa <agilboa@redhat.com>2013-02-26 17:58:44 +0200
commitc1807e804046f98a14cfc3e4f7ef8e08cf31ee61 (patch)
treeb687a1c6e93bbd494cc5abe0eb4048dd4f06febc /vdservice
parent0399b981580d6c39307fde506dabf7655931d2c3 (diff)
vdservice: reset vdagent stop event after wait
vdagent terminates when the global event is set by vdservice. vdservice is also responsible to reset the event in any case, without trusting vdagent to do so. Otherwise, it may terminate the following vdagent instance immediately as well. Regression was due to commit 2d03cc. rhbz #868254
Diffstat (limited to 'vdservice')
-rw-r--r--vdservice/vdservice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index a899ae1..90a3b26 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -801,6 +801,7 @@ bool VDService::kill_agent()
break;
}
}
+ ResetEvent(_agent_stop_event);
CloseHandle(proc_handle);
CloseHandle(_agent_proc_info.hThread);
ZeroMemory(&_agent_proc_info, sizeof(_agent_proc_info));